Class: Adyen::Matchers::HaveAdyenPaymentForm

Inherits:
Object
  • Object
show all
Defined in:
lib/adyen/matchers.rb

Instance Method Summary collapse

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

#descriptionObject



60
61
62
# File 'lib/adyen/matchers.rb', line 60

def description
  "have an adyen payment form"
end

#failure_messageObject



64
65
66
# File 'lib/adyen/matchers.rb', line 64

def failure_message
  "expected to find a valid Adyen form on this page"
end

#matches?(document) ⇒ Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/adyen/matchers.rb', line 56

def matches?(document)
  Adyen::Matchers::XPathPaymentFormCheck.check(document, @checks)
end

#negative_failure_messageObject



68
69
70
# File 'lib/adyen/matchers.rb', line 68

def negative_failure_message
  "expected not to find a valid Adyen form on this page"
end