From aebd785a54c9fb2fec249e0e058b31b20b1682cc Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Fri, 5 Feb 2021 18:29:05 +0000 Subject: [PATCH] Fix persistence issue in view test setup --- spec/views/spree/shared/_order_details.html.haml_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/views/spree/shared/_order_details.html.haml_spec.rb b/spec/views/spree/shared/_order_details.html.haml_spec.rb index 76777a363f..d1b7986203 100644 --- a/spec/views/spree/shared/_order_details.html.haml_spec.rb +++ b/spec/views/spree/shared/_order_details.html.haml_spec.rb @@ -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 = "Barter→ing" + order.payments.first.payment_method.update(name: "Barter→ing") render