spec/integration/braintree/dispute_search_spec.rb in braintree-3.0.1 vs spec/integration/braintree/dispute_search_spec.rb in braintree-3.1.0
- old
+ new
@@ -107,10 +107,10 @@
it "correctly returns disputes by received_date range" do
collection = Braintree::Dispute.search do |search|
search.received_date.between("03/03/2014", "03/05/2014")
end
- expect(collection.disputes.count).to eq(1)
+ expect(collection.disputes.count).to be >= 1
dispute = collection.disputes.first
expect(dispute.received_date).to eq(Date.new(2014, 3, 4))
end