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.
41 42 43 |
# File 'lib/adyen/matchers.rb', line 41 def initialize(checks) @checks = checks end |
Instance Method Details
#description ⇒ Object
49 50 51 |
# File 'lib/adyen/matchers.rb', line 49 def description "have an adyen payment form" end |
#failure_message ⇒ Object
53 54 55 |
# File 'lib/adyen/matchers.rb', line 53 def "expected to find a valid Adyen form on this page" end |
#matches?(document) ⇒ Boolean
45 46 47 |
# File 'lib/adyen/matchers.rb', line 45 def matches?(document) Adyen::Matchers::XPathPaymentFormCheck.check(document, @checks) end |
#negative_failure_message ⇒ Object
57 58 59 |
# File 'lib/adyen/matchers.rb', line 57 def "expected not to find a valid Adyen form on this page" end |