Sha256: 8e881d6dcfbbfd3d97b211d4bc9001d7af5837b166d37716f5fcf9a9513b4fb6
Contents?: true
Size: 732 Bytes
Versions: 3
Compression:
Stored size: 732 Bytes
Contents
Given /^that the credit card "([^"]*)" is invalid$/ do |number| FakeBraintree.failures[number] = { "message" => "Credit card number is invalid.", "errors" => { "customer" => { "errors" => [], "credit-card" => { "errors" => [{ "message" => "Credit card number is invalid.", "code" => 81715, "attribute" => :number }] }}}} end Given /^that the credit card "([^"]*)" should not be honored$/ do |number| FakeBraintree.failures[number] = { "message" => "Do Not Honor", "code" => "2000", "status" => "processor_declined" } end Given /^the "([^"]*)" account is past due$/ do |account_name| account = Account.find_by_name!(account_name) account.update_attribute(:subscription_status, Braintree::Subscription::Status::PastDue) end
Version data entries
3 entries across 3 versions & 1 rubygems