Browse files

Clean code generating a deprecation warning

should_not_receive can't be used with and_return
See rspec/rspec-mocks#134
  • Loading branch information...
1 parent 24f9d4a commit c2f9cb7f920c73a9d7fbb857727961904805f197 Cyril Fluck committed Dec 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/cases/oauth_spec.rb
View
2 spec/cases/oauth_spec.rb
@@ -190,7 +190,7 @@
end
it "does not uses get_user_info_from_cookies to parse the cookies" do
- @oauth.should_not_receive(:get_user_info_from_cookies).with(@cookie).and_return({})
+ @oauth.should_not_receive(:get_user_info_from_cookies).with(@cookie)
@oauth.get_user_from_cookies(@cookie)
end

0 comments on commit c2f9cb7

Please sign in to comment.