From bdafc1ff02c215c9381082d8c085e3c19183a560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <2887858+deivid-rodriguez@users.noreply.github.com> Date: Mon, 13 Oct 2025 16:05:59 +0200 Subject: [PATCH] Use supported RSpec syntax This spec was using a very old syntax no longer supported by RSpec. It's not currently influencing specs result because the spec running into the error is currently set as "pending". However, the spec is still run and the error is still visible. Fixing the syntax does not fix the spec, but lets it get a bit further. --- spec/models/spree/payment_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/spree/payment_spec.rb b/spec/models/spree/payment_spec.rb index 9037bdee67..18050ebf13 100644 --- a/spec/models/spree/payment_spec.rb +++ b/spec/models/spree/payment_spec.rb @@ -670,7 +670,7 @@ RSpec.describe Spree::Payment do source: card, payment_method: ) - end.should raise_error(Spree::Core::GatewayError) + end.to raise_error(Spree::Core::GatewayError) end end