Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Clean code generating a deprecation warning
should_not_receive can't be used with and_return
See rspec/rspec-mocks#134
  • Loading branch information
Cyril Fluck authored and Cyril Fluck committed Dec 24, 2012
1 parent 24f9d4a commit c2f9cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/cases/oauth_spec.rb
Expand Up @@ -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

Expand Down

0 comments on commit c2f9cb7

Please sign in to comment.