Class: SitePrism::RSpecMatchers Private
- Inherits:
-
Object
- Object
- SitePrism::RSpecMatchers
- Defined in:
- lib/site_prism/rspec_matchers.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #element_name ⇒ Object readonly private
Instance Method Summary collapse
-
#_create_rspec_existence_matchers ⇒ Symbol
private
Create the positive and negative rspec matchers that will use the SitePrism boolean methods.
-
#initialize(element_name) ⇒ RSpecMatchers
constructor
private
A new instance of RSpecMatchers.
Constructor Details
#initialize(element_name) ⇒ RSpecMatchers
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of RSpecMatchers.
10 11 12 |
# File 'lib/site_prism/rspec_matchers.rb', line 10 def initialize(element_name) @element_name = element_name end |
Instance Attribute Details
#element_name ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'lib/site_prism/rspec_matchers.rb', line 8 def element_name @element_name end |
Instance Method Details
#_create_rspec_existence_matchers ⇒ Symbol
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create the positive and negative rspec matchers that will use the SitePrism boolean methods
17 18 19 20 |
# File 'lib/site_prism/rspec_matchers.rb', line 17 def _create_rspec_existence_matchers SitePrism.logger.debug('Including all relevant matcher names / warnings in RSpec scope.') create_rspec_existence_matchers(matcher, object_method, negated_object_method, warning) end |