mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix: inconsiderate use of RSpec.configure
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user