--- spec/webmock_spec.rb.~1~ 2010-10-18 19:57:09.129443550 +0200 +++ spec/webmock_spec.rb 2010-10-18 20:20:03.965569387 +0200 @@ -31,23 +31,6 @@ WebMock.allow_net_connect! end - it "should make a real web request if request is not stubbed" do - setup_expectations_for_real_example_com_request - http_request(:get, "http://www.example.com/"). - body.should =~ /.*example.*/ - end - - it "should make a real https request if request is not stubbed" do - setup_expectations_for_real_example_com_request( - :host => "www.paypal.com", - :port => 443, - :path => "/uk/cgi-bin/webscr", - :response_body => "hello paypal" - ) - http_request(:get, "https://www.paypal.com/uk/cgi-bin/webscr"). - body.should =~ /.*paypal.*/ - end - it "should return stubbed response if request was stubbed" do stub_http_request(:get, "www.example.com").to_return(:body => "abc") http_request(:get, "http://www.example.com/").body.should == "abc"