spec/integration/braintree/dispute_spec.rb in braintree-3.3.0 vs spec/integration/braintree/dispute_spec.rb in braintree-3.4.0

- old
+ new

@@ -9,18 +9,18 @@ document_upload = response.document_upload end let(:transaction) do result = Braintree::Transaction.sale( - :amount => '10.00', + :amount => "10.00", :credit_card => { - :expiration_date => '01/2020', + :expiration_date => "01/2020", :number => Braintree::Test::CreditCardNumbers::Disputes::Chargeback }, :options => { :submit_for_settlement => true - } + }, ) result.transaction end @@ -48,11 +48,11 @@ end it "raises a NotFound exception if the dispute cannot be found" do expect do Braintree::Dispute.accept("invalid-id") - end.to raise_error(Braintree::NotFoundError, 'dispute with id invalid-id not found') + end.to raise_error(Braintree::NotFoundError, "dispute with id invalid-id not found") end end describe "self.add_file_evidence" do it "creates file evidence for the dispute" do @@ -139,11 +139,11 @@ expected_evidence.should_not == nil expected_evidence.comment.should == "text evidence" end it "creates text evidence for the dispute with optional parameters" do - result = Braintree::Dispute.add_text_evidence(dispute.id, { content: "123456789", category: "REFUND_ID", sequence_number: 7 }) + result = Braintree::Dispute.add_text_evidence(dispute.id, {content: "123456789", category: "REFUND_ID", sequence_number: 7}) result.success?.should == true result.evidence.category.should == "REFUND_ID" result.evidence.comment.should == "123456789" result.evidence.created_at.between?(Time.now - 10, Time.now).should == true @@ -172,10 +172,10 @@ end it "raises a NotFound exception if the dispute cannot be found" do expect do Braintree::Dispute.finalize("invalid-id") - end.to raise_error(Braintree::NotFoundError, 'dispute with id invalid-id not found') + end.to raise_error(Braintree::NotFoundError, "dispute with id invalid-id not found") end end describe "self.find" do it "finds the dispute with the given id" do