Module: RR::Adapters::TestUnit
- Includes:
- Extensions::InstanceMethods
- Defined in:
- lib/rr/adapters/test_unit.rb
Class Method Summary collapse
Methods included from Extensions::InstanceMethods
#any_times, #anything, #boolean, #do_not_allow, #duck_type, #is_a, #mock, #mock_probe, #numeric, #reset, #stub, #stub_probe, #verify
Class Method Details
.included(mod) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/rr/adapters/test_unit.rb', line 7 def self.included(mod) mod.class_eval do alias_method :setup_without_rr, :setup def setup_with_rr setup_without_rr rr_reset end alias_method :setup, :setup_with_rr alias_method :teardown_without_rr, :teardown def teardown_with_rr rr_verify teardown_without_rr end alias_method :teardown, :teardown_with_rr end end |