Skip to content

Commit

Permalink
Added docs on using RR by itself.
Browse files Browse the repository at this point in the history
  • Loading branch information
btakita committed Jul 5, 2009
1 parent 595d892 commit 1708360
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ Currently RR implements mocks, stubs, proxies, and spies. Fakes usually require
# config.mock_with RR::Adapters::Rspec
end

== standalone
extend RR::Adapters::RRMethods
mock(object).method_name {:return_value}

object.method_name # Returns :return_value

RR.verify # Verifies the Double expectations are satisfied

== Syntax between RR and other double/mock frameworks
=== Terse Syntax
One of the goals of RR is to make doubles more scannable.
Expand Down

0 comments on commit 1708360

Please sign in to comment.