Replaces 'background' with 'before' (squashing)

Replaces 'background' with 'before'

Replaces 'background' with 'before' in other files

Fixes typo on products_spec.rb
This commit is contained in:
filipefurtad0
2021-09-28 10:36:01 +01:00
parent 6f694e2cab
commit 81890a4e21
4 changed files with 7 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ describe 'Multilingual', js: true do
let(:admin_role) { Spree::Role.find_or_create_by!(name: 'admin') }
let(:admin_user) { create(:user) }
background do
before do
admin_user.spree_roles << admin_role
login_as admin_user
visit spree.admin_dashboard_path

View File

@@ -316,7 +316,7 @@ describe '
end
end
background do
before do
distributor1.update_attribute(:abn, '12345678')
visit spree.edit_admin_order_path(order)

View File

@@ -9,7 +9,7 @@ describe '
include WebHelper
include AuthenticationHelper
background do
before do
@distributors = (1..3).map { create(:distributor_enterprise) }
end

View File

@@ -13,7 +13,7 @@ describe '
let!(:stock_location) { create(:stock_location, backorderable_default: false) }
let!(:shipping_category) { DefaultShippingCategory.find_or_create }
background do
before do
@supplier = create(:supplier_enterprise, name: 'New supplier')
@distributors = (1..3).map { create(:distributor_enterprise) }
@enterprise_fees = (0..2).map { |i| create(:enterprise_fee, enterprise: @distributors[i]) }
@@ -167,7 +167,9 @@ describe '
}
context 'products', js: true do
before { login_as_admin_and_visit spree.admin_products_path }
before do
login_as_admin_and_visit spree.admin_products_path
end
it 'creates a copy of the product' do
within "#p_#{product1.id}" do