From 7010cda9f75eb041a5b21716afa3297c1fd6ce26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Turbelin?= Date: Mon, 2 Mar 2026 22:07:45 +0100 Subject: [PATCH] Tidy up the tests --- spec/models/proxy_order_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/proxy_order_spec.rb b/spec/models/proxy_order_spec.rb index 2fe552b28d..b263db72f2 100644 --- a/spec/models/proxy_order_spec.rb +++ b/spec/models/proxy_order_spec.rb @@ -223,7 +223,7 @@ RSpec.describe ProxyOrder do context "when the order is not present" do let(:order) { nil } - it "returns 'canceled'" do + it "returns 'pending'" do expect(proxy_order.state).to eq('pending') end @@ -238,7 +238,7 @@ RSpec.describe ProxyOrder do context "when the order cycle is not yet open" do let(:order_cycle) { build(:order_cycle, orders_open_at: 2.days.from_now) } - it "returns 'cart'" do + it "returns 'pending'" do expect(proxy_order.state).to eq('pending') end @@ -267,7 +267,7 @@ RSpec.describe ProxyOrder do end context "when the order cycle does not have a closing date" do - it "returns 'cart'" do + it "returns 'complete'" do order_cycle.orders_close_at = nil expect(proxy_order.state).to eq('complete') end