2021-04-19 06:50:12 +02:00
|
|
|
require "./spec_helper"
|
2021-06-08 14:20:46 +02:00
|
|
|
require "webmock"
|
|
|
|
WebMock.stub(:any, "example.com")
|
2021-04-19 06:50:12 +02:00
|
|
|
|
|
|
|
describe Mechanize do
|
2021-06-09 14:44:54 +02:00
|
|
|
it "simple get" do
|
|
|
|
agent = Mechanize.new
|
|
|
|
uri = "http://example.com/"
|
|
|
|
page = agent.get(uri)
|
|
|
|
page.code.should eq 200
|
|
|
|
page.uri.to_s.should eq uri
|
2021-04-19 06:50:12 +02:00
|
|
|
end
|
|
|
|
end
|