Fix: inconsiderate use of RSpec.configure

This commit is contained in:
cyrillefr
2025-03-13 10:08:35 +01:00
parent e26d591d24
commit ba58a7b924

View File

@@ -5,12 +5,10 @@ require 'spec_helper'
RSpec.describe Admin::SubscriptionLineItemsController, type: :controller do
include AuthenticationHelper
RSpec.configure do |c|
c.before(:each) do |test|
unless test.metadata[:no_outgoing_exchange]
order_cycle.exchanges.create(sender: shop, receiver: shop, variants: [variant],
enterprise_fees: [enterprise_fee])
end
before(:each) do |test|
unless test.metadata[:no_outgoing_exchange]
order_cycle.exchanges.create(sender: shop, receiver: shop, variants: [variant],
enterprise_fees: [enterprise_fee])
end
end