Permalink
Browse files

Added failing test case

  • Loading branch information...
1 parent 1ee340f commit e0cd200ad63700bfbe539ce8cdda4a0643435dd0 @bastien bastien committed Mar 15, 2013
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

0 comments on commit e0cd200

Please sign in to comment.