Class: SitePrism::RSpecMatchers Private

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameObject (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_matchersSymbol

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

Returns:

  • (Symbol)


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