Skip to content

Commit

Permalink
Fix rspec deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed Oct 27, 2013
1 parent 8e07a60 commit 1dc0989
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/unit/errors_spec.rb
Expand Up @@ -29,11 +29,11 @@
end

it "should not be caught by a rescue block without arguments" do
request_signature = mock(:to_s => "aaa")
request_stub = mock
WebMock::RequestStub.stub!(:from_request_signature).and_return(request_stub)
WebMock::StubRequestSnippet.stub!(:new).
with(request_stub).and_return(mock(:to_s => "bbb"))
request_signature = double(:to_s => "aaa")
request_stub = double
WebMock::RequestStub.stub(:from_request_signature).and_return(request_stub)
WebMock::StubRequestSnippet.stub(:new).
with(request_stub).and_return(double(:to_s => "bbb"))

exception = WebMock::NetConnectNotAllowedError.new(request_signature)

Expand Down

0 comments on commit 1dc0989

Please sign in to comment.