mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-11 03:40:20 +00:00
Fix failing spec
I wrongly fixed it due to my local database having rogue data
This commit is contained in:
@@ -100,8 +100,6 @@ RSpec.describe Spree::PaymentMethod::CustomerCredit do
|
||||
let!(:credit_payment_method) { nil }
|
||||
|
||||
it "returns an error" do
|
||||
Spree::PaymentMethod.customer_credit.destroy
|
||||
|
||||
expect(response.success?).to be(false)
|
||||
expect(response.message).to eq("Credit payment method is missing")
|
||||
end
|
||||
@@ -189,8 +187,6 @@ RSpec.describe Spree::PaymentMethod::CustomerCredit do
|
||||
let!(:credit_payment_method) { nil }
|
||||
|
||||
it "returns an error" do
|
||||
Spree::PaymentMethod.customer_credit.destroy
|
||||
|
||||
expect(response.success?).to be(false)
|
||||
expect(response.message).to eq("Credit payment method is missing")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user