Permalink
Browse files

Changed spec to work in all environments even if cms.local domain if …

…undefined.
  • Loading branch information...
1 parent 36ebde0 commit bd1b211cb49be8e75cc8c332c44e0da9ae34bd6b @bblimke committed Sep 6, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 spec/webmock_spec.rb
@@ -102,7 +102,7 @@ class MyException < StandardError; end;
describe "is not allowed with exception for allowed domains" do
before(:each) do
- WebMock.disable_net_connect!(:allow => ["cms.local"])
+ WebMock.disable_net_connect!(:allow => ["www.example.org"])
end
it "should return stubbed response if request was stubbed" do
@@ -117,9 +117,7 @@ class MyException < StandardError; end;
end
it "should allow a real request to cms.local" do
@phiggins
phiggins Sep 6, 2010 Contributor

The name of the spec should probably be changed as well.

@bblimke
bblimke Sep 7, 2010 Owner

Thanks, I didn't spot it.

- lambda {
- http_request(:get, "http://cms.local:12345/")
- }.should raise_error(connection_refused_exception_class)
+ http_request(:get, "http://www.example.org/").status.should == "200"
end
end
end

0 comments on commit bd1b211

Please sign in to comment.