Fixes RSpecRailsInferredSpecType on routing

This commit is contained in:
cyrillefr
2025-05-21 09:45:03 +02:00
parent 758d78bfe4
commit b431b414a1
2 changed files with 1 additions and 8 deletions

View File

@@ -221,13 +221,6 @@ Metrics/PerceivedComplexity:
- 'app/models/spree/ability.rb'
- 'app/models/spree/order/checkout.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Inferences.
RSpecRails/InferredSpecType:
Exclude:
- 'spec/routing/stripe_spec.rb'
# Offense count: 1
# Configuration parameters: TransactionMethods.
Rails/TransactionExitStatement:

View File

@@ -2,7 +2,7 @@
require "spec_helper"
RSpec.describe "routing for Stripe return URLS", type: :routing do
RSpec.describe "routing for Stripe return URLS" do
context "checkout return URLs" do
it "routes /checkout to checkout#edit" do
expect(get: "checkout").