Module: RSpec::Forward::ForwardScopeParentMethods
- Included in:
- ForwardToScope
- Defined in:
- lib/rspec/forward/forward_scope_parent_methods.rb
Instance Method Summary collapse
- #using_class_name(target_class_name) ⇒ Object
- #using_method(target_method_name) ⇒ Object
- #using_method_args(*args, **kwargs) ⇒ Object
- #with_parent_arg ⇒ Object
Instance Method Details
#using_class_name(target_class_name) ⇒ Object
11 12 13 14 |
# File 'lib/rspec/forward/forward_scope_parent_methods.rb', line 11 def using_class_name(target_class_name) @scope_klass_name = target_class_name self end |
#using_method(target_method_name) ⇒ Object
6 7 8 9 |
# File 'lib/rspec/forward/forward_scope_parent_methods.rb', line 6 def using_method(target_method_name) @target_method_name = target_method_name self end |
#using_method_args(*args, **kwargs) ⇒ Object
16 17 18 19 20 |
# File 'lib/rspec/forward/forward_scope_parent_methods.rb', line 16 def using_method_args(*args, **kwargs) @args = args @kwargs = kwargs self end |
#with_parent_arg ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/rspec/forward/forward_scope_parent_methods.rb', line 22 def with_parent_arg # Name of the parent class is not available here if the default # class is used, because defaualt class needs the "actual" # parameter from matchers_for?(actual) @with_parent_arg = true self end |