Skip to content

Commit

Permalink
define have_received for rspec2, re: issue #45
Browse files Browse the repository at this point in the history
  • Loading branch information
nicknovitski committed Aug 18, 2011
1 parent c5fda5a commit 65add9e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lib/rr/adapters/rspec2.rb
@@ -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

0 comments on commit 65add9e

Please sign in to comment.