Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added failing test case

  • Loading branch information...
commit e0cd200ad63700bfbe539ce8cdda4a0643435dd0 1 parent 1ee340f
@bastien bastien authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 spec/acceptance/net_http/net_http_spec.rb
View
5 spec/acceptance/net_http/net_http_spec.rb
@@ -203,6 +203,11 @@ class TestMarshalingInWebMockNetHTTP
response = Net::HTTP.get('www.google.com','/')
end
+ it "should connect to the server if the URI matches any regex the array", :net_connect => true do
+ WebMock.disable_net_connect!(:allow => [/google.com/, /yahoo.com/])
+ response = Net::HTTP.get('www.google.com','/')
+ end
+
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.