Module: Spec::Example::ExampleGroupMethods
- Defined in:
- lib/deep_test/spec/extensions/example_group_methods.rb
Constant Summary collapse
- DeepTestAllBlockWarning =
"Warning: DeepTest will run before(:all) and after(:all) blocks for *every* test that is run. To remove this warning either convert all before/after blocks to each blocks or set $show_deep_test_all_block_warning to false"
Class Method Summary collapse
Instance Method Summary collapse
- #append_after(*args, &block) ⇒ Object (also: #after)
- #append_before(*args, &block) ⇒ Object (also: #before)
- #prepend_after(*args, &block) ⇒ Object
- #prepend_before(*args, &block) ⇒ Object
Class Method Details
.assign_instance_method_to_constant(proposed_constant) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/deep_test/spec/extensions/example_group_methods.rb', line 5 def assign_instance_method_to_constant(proposed_constant) method_sym = proposed_constant.to_s.downcase unless const_defined?(proposed_constant) const_set(proposed_constant, instance_method(method_sym)) end end |
Instance Method Details
#append_after(*args, &block) ⇒ Object Also known as: after
38 39 40 41 |
# File 'lib/deep_test/spec/extensions/example_group_methods.rb', line 38 def append_after(*args, &block) check_filter_args(args) call_regular_instance_method :append_after, *args, &block end |
#append_before(*args, &block) ⇒ Object Also known as: before
26 27 28 29 |
# File 'lib/deep_test/spec/extensions/example_group_methods.rb', line 26 def append_before(*args, &block) check_filter_args(args) call_regular_instance_method :append_before, *args, &block end |
#prepend_after(*args, &block) ⇒ Object
33 34 35 36 |
# File 'lib/deep_test/spec/extensions/example_group_methods.rb', line 33 def prepend_after(*args, &block) check_filter_args(args) call_regular_instance_method :prepend_after, *args, &block end |
#prepend_before(*args, &block) ⇒ Object
21 22 23 24 |
# File 'lib/deep_test/spec/extensions/example_group_methods.rb', line 21 def prepend_before(*args, &block) check_filter_args(args) call_regular_instance_method :prepend_before, *args, &block end |