Module: Ruptr::Adapters::RSpecMocks
- Includes:
- RSpec::Mocks::ExampleMethods, RSpecExpect, TestInstance
- Defined in:
- lib/ruptr/adapters/rspec_mocks.rb
Instance Attribute Summary
Attributes included from TestInstance
Instance Method Summary collapse
Methods included from RSpecExpect
Methods included from TestInstance
#inspect, #ruptr_assertions_count, #ruptr_assertions_count=, #ruptr_ineffective_assertions_count, #ruptr_ineffective_assertions_count=, #ruptr_initialize_test_instance, #ruptr_internal_variable?, #ruptr_test_element
Instance Method Details
#ruptr_wrap_test_instance ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/ruptr/adapters/rspec_mocks.rb', line 17 def ruptr_wrap_test_instance super do ::RSpec::Mocks.setup begin yield ::RSpec::Mocks.verify ensure ::RSpec::Mocks.teardown end end end |