Skip to content

Commit

Permalink
Tweak syntax comparison doc [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmire committed May 13, 2013
1 parent c7ae5cc commit 92a7370
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doc/02_syntax_comparison.md
Expand Up @@ -9,11 +9,9 @@ possible. Here is RR compared to other mock frameworks:
~~~ ruby
# Flexmock
flexmock(User).should_receive(:find).with('42').and_return(jane)
# RSpec
User.should_receive(:find).with('42').and_return(jane)
# Mocha
User.expects(:find).with('42').returns { jane }
# rspec-mocks (using return value blocks)
# rspec-mocks
User.should_receive(:find).with('42') { jane }
# RR
mock(User).find('42') { jane }
Expand Down

0 comments on commit 92a7370

Please sign in to comment.