spec/integration/braintree/dispute_spec.rb in braintree-2.90.0 vs spec/integration/braintree/dispute_spec.rb in braintree-2.91.0
- old
+ new
@@ -32,9 +32,12 @@
result.success?.should == true
refreshed_dispute = Braintree::Dispute.find(dispute.id)
refreshed_dispute.status.should == Braintree::Dispute::Status::Accepted
+
+ dispute_from_transaction = Braintree::Transaction.find(dispute.transaction.id).disputes[0]
+ dispute_from_transaction.status.should == Braintree::Dispute::Status::Accepted
end
it "returns an error response if the dispute is not in open status" do
result = Braintree::Dispute.accept("wells_dispute")