spec/integration/braintree/test/transaction_amounts_spec.rb in braintree-1.2.1 vs spec/integration/braintree/test/transaction_amounts_spec.rb in braintree-2.0.0
- old
+ new
@@ -14,16 +14,16 @@
end
end
describe "Decline" do
it "creates a transaction with status processor_declined" do
- transaction = Braintree::Transaction.sale!(
+ result = Braintree::Transaction.sale(
:amount => Braintree::Test::TransactionAmounts::Decline,
:credit_card => {
:number => Braintree::Test::CreditCardNumbers::Visa,
:expiration_date => "12/2012"
}
)
- transaction.status.should == Braintree::Transaction::Status::ProcessorDeclined
+ result.transaction.status.should == Braintree::Transaction::Status::ProcessorDeclined
end
end
end