Module: RR::Integrations::RSpec2::Mixin

Defined in:
lib/rr/integrations/rspec_2.rb

Instance Method Summary collapse

Instance Method Details

#have_received(method = nil) ⇒ Object



17
18
19
# File 'lib/rr/integrations/rspec_2.rb', line 17

def have_received(method = nil)
  RSpec::InvocationMatcher.new(method)
end

#setup_mocks_for_rspecObject



5
6
7
# File 'lib/rr/integrations/rspec_2.rb', line 5

def setup_mocks_for_rspec
  RR.reset
end

#teardown_mocks_for_rspecObject



13
14
15
# File 'lib/rr/integrations/rspec_2.rb', line 13

def teardown_mocks_for_rspec
  RR.reset
end

#verify_mocks_for_rspecObject



9
10
11
# File 'lib/rr/integrations/rspec_2.rb', line 9

def verify_mocks_for_rspec
  RR.verify
end