Class: Katalyst::Kpop::Matchers::TitleMatcher Private

Inherits:
Base
  • Object
show all
Defined in:
lib/katalyst/kpop/matchers/title_matcher.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

Attributes inherited from Base

#matched

Instance Method Summary collapse

Methods inherited from Base

#matches?

Instance Method Details

#descriptionObject

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/katalyst/kpop/matchers/title_matcher.rb', line 8

def description
  "contain a kpop modal with title #{expected.inspect}"
end

#failure_messageObject

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.



16
17
18
# File 'lib/katalyst/kpop/matchers/title_matcher.rb', line 16

def failure_message
  "expected a kpop modal with title #{expected.inspect} but received #{actual.native.to_html.inspect} instead"
end

#failure_message_when_negatedObject

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.



20
21
22
# File 'lib/katalyst/kpop/matchers/title_matcher.rb', line 20

def failure_message_when_negated
  "expected not to find a kpop modal with title #{expected}"
end

#match(expected, actual) ⇒ Object

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.



12
13
14
# File 'lib/katalyst/kpop/matchers/title_matcher.rb', line 12

def match(expected, actual)
  expected.match?(actual.text)
end