mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix persistence issue in view test setup
This commit is contained in:
@@ -17,7 +17,7 @@ describe "spree/shared/_order_details.html.haml" do
|
||||
end
|
||||
|
||||
it "shows how the order is paid for" do
|
||||
order.payments.first.payment_method.name = "Bartering"
|
||||
order.payments.first.payment_method.update(name: "Bartering")
|
||||
|
||||
render
|
||||
|
||||
@@ -25,7 +25,7 @@ describe "spree/shared/_order_details.html.haml" do
|
||||
end
|
||||
|
||||
it "displays payment methods safely" do
|
||||
order.payments.first.payment_method.name = "Bar<script>evil</script>ter→ing"
|
||||
order.payments.first.payment_method.update(name: "Bar<script>evil</script>ter→ing")
|
||||
|
||||
render
|
||||
|
||||
|
||||
Reference in New Issue
Block a user