Sha256: 12af1713a869fa9932a91dde74c5a04b88b05a37d52571f9cd72ed74bd1b267d
Contents?: true
Size: 1016 Bytes
Versions: 120
Compression:
Stored size: 1016 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper") describe Braintree::Test::TransactionAmounts do describe "Authorize" do it "creates a transaction with status authorized" do transaction = Braintree::Transaction.sale!( :amount => Braintree::Test::TransactionAmounts::Authorize, :credit_card => { :number => Braintree::Test::CreditCardNumbers::Visa, :expiration_date => "12/2012" } ) transaction.status.should == Braintree::Transaction::Status::Authorized end end describe "Decline" do it "creates a transaction with status processor_declined" do result = Braintree::Transaction.sale( :amount => Braintree::Test::TransactionAmounts::Decline, :credit_card => { :number => Braintree::Test::CreditCardNumbers::Visa, :expiration_date => "12/2012" } ) result.transaction.status.should == Braintree::Transaction::Status::ProcessorDeclined end end end
Version data entries
120 entries across 120 versions & 1 rubygems