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.
This commit is contained in:
David Rodríguez
2025-10-13 16:05:59 +02:00
parent 4852ee2c6e
commit bdafc1ff02

View File

@@ -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