Displaying 1 result from an estimated 1 matches for "netconnectnotallowederror".
2011 Feb 16
3
stubbing gets undone?
...d not hit the web" do
@premise.lookup_things_on_the_web.should_not raise_exception
end
end
----
When I run the test, I see:
just stubbed #<Premise id: 1, user_id: 1, ...>
entering lookup_stuff_on_the_web with #<Premise id: 1, user_id: 1, ...>
Failure/Error: ...
WebMock::NetConnectNotAllowedError:
As far as I can see, the Premise that''s being stubbed and the Premise
whose lookup_stuff_on_the_web method is getting called are one and the
same. What I can''t figure out is why the stub isn''t being honored.
(FWIW, the same setup code is working in other tests.)
Are t...