Skip to content
Browse files

fix rspec deprecation warnings

  • Loading branch information...
1 parent 8dde31c commit 041c3e901a988a0d9541d27a3b922c1284336c23 @igrigorik igrigorik committed Oct 23, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 spec/client_spec.rb
  2. +2 −2 spec/multi_spec.rb
View
2 spec/client_spec.rb
@@ -42,7 +42,7 @@ def failed(http=nil)
http.response.should match(/Hello/)
EventMachine.stop
}
- }.should_not raise_error(ArgumentError)
+ }.should_not raise_error
}
end
View
4 spec/multi_spec.rb
@@ -37,8 +37,8 @@
describe "#requests" do
it "should return the added requests" do
- request1 = stub('request1', :callback => nil, :errback => nil)
- request2 = stub('request2', :callback => nil, :errback => nil)
+ request1 = double('request1', :callback => nil, :errback => nil)
+ request2 = double('request2', :callback => nil, :errback => nil)
multi.add :a, request1
multi.add :b, request2

0 comments on commit 041c3e9

Please sign in to comment.
Something went wrong with that request. Please try again.