Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
define have_received for rspec2, re: issue #45
- Loading branch information
1 parent
c5fda5a
commit 65add9e
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module RR | ||
module Adapters | ||
module RSpec2 | ||
|
||
include RRMethods | ||
|
||
def setup_mocks_for_rspec | ||
RR.reset | ||
end | ||
def verify_mocks_for_rspec | ||
RR.verify | ||
end | ||
def teardown_mocks_for_rspec | ||
RR.reset | ||
end | ||
|
||
def have_received(method = nil) | ||
RR::Adapters::Rspec::InvocationMatcher.new(method) | ||
end | ||
end | ||
end | ||
end |