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.
52 53 54 |
# File 'lib/adyen/matchers.rb', line 52 def initialize(checks) @checks = checks end |
Instance Method Details
#description ⇒ Object
60 61 62 |
# File 'lib/adyen/matchers.rb', line 60 def description "have an adyen payment form" end |
#failure_message ⇒ Object
64 65 66 |
# File 'lib/adyen/matchers.rb', line 64 def "expected to find a valid Adyen form on this page" end |
#matches?(document) ⇒ Boolean
56 57 58 |
# File 'lib/adyen/matchers.rb', line 56 def matches?(document) Adyen::Matchers::XPathPaymentFormCheck.check(document, @checks) end |
#negative_failure_message ⇒ Object
68 69 70 |
# File 'lib/adyen/matchers.rb', line 68 def "expected not to find a valid Adyen form on this page" end |