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