require "spec" require "webmock" require "../src/mechanize" WebMock.stub(:get, "example.com") WebMock.stub(:get, "fail_example.com").to_return(status: 500) WebMock.stub(:get, "body_example.com").to_return(body: "hello") WebMock.stub(:get, "another_domain.com/") WebMock.stub(:get, "example.com/form").to_return(body: <<-BODY