Module: Test::Unit::Fixture::ClassMethods
- Defined in:
- lib/test/unit/fixture.rb
Instance Method Summary collapse
- #after_cleanup_methods ⇒ Object
- #after_setup_methods ⇒ Object
- #after_teardown_methods ⇒ Object
- #before_cleanup_methods ⇒ Object
- #before_setup_methods ⇒ Object
- #before_teardown_methods ⇒ Object
- #cleanup(*method_names) ⇒ Object
- #register_cleanup_method(method_name, options) ⇒ Object
- #register_setup_method(method_name, options) ⇒ Object
- #register_teardown_method(method_name, options) ⇒ Object
- #setup(*method_names) ⇒ Object
- #teardown(*method_names) ⇒ Object
- #unregister_cleanup(*method_names) ⇒ Object
- #unregister_cleanup_method(method_name) ⇒ Object
- #unregister_setup(*method_names) ⇒ Object
- #unregister_setup_method(method_name) ⇒ Object
- #unregister_teardown(*method_names) ⇒ Object
- #unregister_teardown_method(method_name) ⇒ Object
Instance Method Details
#after_cleanup_methods ⇒ Object
85 86 87 |
# File 'lib/test/unit/fixture.rb', line 85 def after_cleanup_methods collect_fixture_methods(:cleanup, :after) end |
#after_setup_methods ⇒ Object
77 78 79 |
# File 'lib/test/unit/fixture.rb', line 77 def after_setup_methods collect_fixture_methods(:setup, :after) end |
#after_teardown_methods ⇒ Object
93 94 95 |
# File 'lib/test/unit/fixture.rb', line 93 def after_teardown_methods collect_fixture_methods(:teardown, :after) end |
#before_cleanup_methods ⇒ Object
81 82 83 |
# File 'lib/test/unit/fixture.rb', line 81 def before_cleanup_methods collect_fixture_methods(:cleanup, :before) end |
#before_setup_methods ⇒ Object
73 74 75 |
# File 'lib/test/unit/fixture.rb', line 73 def before_setup_methods collect_fixture_methods(:setup, :before) end |
#before_teardown_methods ⇒ Object
89 90 91 |
# File 'lib/test/unit/fixture.rb', line 89 def before_teardown_methods collect_fixture_methods(:teardown, :before) end |
#cleanup(*method_names) ⇒ Object
31 32 33 |
# File 'lib/test/unit/fixture.rb', line 31 def cleanup(*method_names) register_fixture(:cleanup, *method_names) end |
#register_cleanup_method(method_name, options) ⇒ Object
55 56 57 58 |
# File 'lib/test/unit/fixture.rb', line 55 def register_cleanup_method(method_name, ) register_fixture_method(:cleanup, method_name, , :before, :prepend) end |
#register_setup_method(method_name, options) ⇒ Object
47 48 49 |
# File 'lib/test/unit/fixture.rb', line 47 def register_setup_method(method_name, ) register_fixture_method(:setup, method_name, , :after, :append) end |
#register_teardown_method(method_name, options) ⇒ Object
64 65 66 67 |
# File 'lib/test/unit/fixture.rb', line 64 def register_teardown_method(method_name, ) register_fixture_method(:teardown, method_name, , :before, :prepend) end |
#setup(*method_names) ⇒ Object
23 24 25 |
# File 'lib/test/unit/fixture.rb', line 23 def setup(*method_names) register_fixture(:setup, *method_names) end |
#teardown(*method_names) ⇒ Object
39 40 41 |
# File 'lib/test/unit/fixture.rb', line 39 def teardown(*method_names) register_fixture(:teardown, *method_names) end |
#unregister_cleanup(*method_names) ⇒ Object
35 36 37 |
# File 'lib/test/unit/fixture.rb', line 35 def unregister_cleanup(*method_names) unregister_fixture(:cleanup, *method_names) end |
#unregister_cleanup_method(method_name) ⇒ Object
60 61 62 |
# File 'lib/test/unit/fixture.rb', line 60 def unregister_cleanup_method(method_name) unregister_fixture_method(:cleanup, method_name) end |
#unregister_setup(*method_names) ⇒ Object
27 28 29 |
# File 'lib/test/unit/fixture.rb', line 27 def unregister_setup(*method_names) unregister_fixture(:setup, *method_names) end |
#unregister_setup_method(method_name) ⇒ Object
51 52 53 |
# File 'lib/test/unit/fixture.rb', line 51 def unregister_setup_method(method_name) unregister_fixture_method(:setup, method_name) end |
#unregister_teardown(*method_names) ⇒ Object
43 44 45 |
# File 'lib/test/unit/fixture.rb', line 43 def unregister_teardown(*method_names) unregister_fixture(:teardown, *method_names) end |
#unregister_teardown_method(method_name) ⇒ Object
69 70 71 |
# File 'lib/test/unit/fixture.rb', line 69 def unregister_teardown_method(method_name) unregister_fixture_method(:teardown, method_name) end |