spec/integration/braintree/dispute_search_spec.rb in braintree-4.8.0 vs spec/integration/braintree/dispute_search_spec.rb in braintree-4.9.0

- old
+ new

@@ -84,11 +84,13 @@ end expect(collection.disputes.count).to eq(1) dispute = collection.disputes.first + # NEXT_MAJOR_VERSION Remove this assertion when chargeback_protection_level is removed from the SDK expect(dispute.chargeback_protection_level).to eq(Braintree::Dispute::ChargebackProtectionLevel::Effortless) + expect(dispute.protection_level).to eq(Braintree::Dispute::ProtectionLevel::EffortlessCBP) expect(dispute.reason).to eq(Braintree::Dispute::Reason::Fraud) end it "correctly returns disputes by chargeback protection level flag" do collection = Braintree::Dispute.search do |search| @@ -97,10 +99,12 @@ ] end expect(collection.disputes.count).to eq(1) dispute = collection.disputes.first + # NEXT_MAJOR_VERSION Remove this assertion when chargeback_protection_level is removed from the SDK expect(dispute.chargeback_protection_level).to eq(Braintree::Dispute::ChargebackProtectionLevel::Effortless) + expect(dispute.protection_level).to eq(Braintree::Dispute::ProtectionLevel::EffortlessCBP) expect(dispute.reason).to eq(Braintree::Dispute::Reason::Fraud) end it "correctly returns disputes by effective_date range" do effective_date = transaction.disputes.first.status_history.first.effective_date