Class: Adyen::Matchers::HaveAdyenPaymentForm
- Inherits:
-
Object
- Object
- Adyen::Matchers::HaveAdyenPaymentForm
- Defined in:
- lib/adyen/matchers.rb
Instance Method Summary collapse
- #description ⇒ Object
- #failure_message ⇒ Object
-
#initialize(checks) ⇒ HaveAdyenPaymentForm
constructor
A new instance of HaveAdyenPaymentForm.
- #matches?(document) ⇒ Boolean
- #negative_failure_message ⇒ Object
Constructor Details
#initialize(checks) ⇒ HaveAdyenPaymentForm
Returns a new instance of HaveAdyenPaymentForm.
53 54 55 |
# File 'lib/adyen/matchers.rb', line 53 def initialize(checks) @checks = checks end |
Instance Method Details
#description ⇒ Object
61 62 63 |
# File 'lib/adyen/matchers.rb', line 61 def description "have an adyen payment form" end |
#failure_message ⇒ Object
65 66 67 |
# File 'lib/adyen/matchers.rb', line 65 def "expected to find a valid Adyen form on this page" end |
#matches?(document) ⇒ Boolean
57 58 59 |
# File 'lib/adyen/matchers.rb', line 57 def matches?(document) Adyen::Matchers::XPathPaymentFormCheck.check(document, @checks) end |
#negative_failure_message ⇒ Object
69 70 71 |
# File 'lib/adyen/matchers.rb', line 69 def "expected not to find a valid Adyen form on this page" end |