mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix mislabeled StandingOrderForm specs
This commit is contained in:
@@ -188,7 +188,7 @@ describe StandingOrderForm do
|
||||
end
|
||||
end
|
||||
|
||||
context "and the submitted shipping method is not associated with the shop" do
|
||||
context "and the submitted payment method is not associated with the shop" do
|
||||
let(:params) { { payment_method_id: invalid_payment_method.id } }
|
||||
|
||||
it "returns false and does not void existing payments or create a new payment" do
|
||||
@@ -203,7 +203,7 @@ describe StandingOrderForm do
|
||||
end
|
||||
end
|
||||
|
||||
context "and the submitted shipping method is not associated with the shop" do
|
||||
context "and the submitted payment method is not a Stripe or Cash method" do
|
||||
let(:params) { { payment_method_id: bogus_payment_method.id } }
|
||||
|
||||
it "returns false and does not void existing payments or create a new payment" do
|
||||
|
||||
Reference in New Issue
Block a user