Class: Katalyst::Kpop::Matchers::RedirectMatcher Private
- Inherits:
-
Base
- Object
- RSpec::Rails::Matchers::BaseMatcher
- Base
- Katalyst::Kpop::Matchers::RedirectMatcher
- Defined in:
- lib/katalyst/kpop/matchers/redirect_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
Instance Method Summary collapse
- #description ⇒ Object private
- #failure_message ⇒ Object private
- #failure_message_when_negated ⇒ Object private
- #match(expected, actual) ⇒ Object private
Methods inherited from Base
Instance Method Details
#description ⇒ 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.
14 15 16 |
# File 'lib/katalyst/kpop/matchers/redirect_matcher.rb', line 14 def description "kpop redirect to #{expected.inspect}" end |
#failure_message ⇒ 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.
18 19 20 |
# File 'lib/katalyst/kpop/matchers/redirect_matcher.rb', line 18 def "expected a kpop redirect to #{expected.inspect} but received #{actual.native.to_html.inspect} instead" end |
#failure_message_when_negated ⇒ 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.
22 23 24 |
# File 'lib/katalyst/kpop/matchers/redirect_matcher.rb', line 22 def "expected not to find a kpop redirect to #{expected.inspect}" 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.
10 11 12 |
# File 'lib/katalyst/kpop/matchers/redirect_matcher.rb', line 10 def match(expected, actual) actual["href"].to_s.match?(expected) end |