mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
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:
@@ -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
|
||||
|
||||
@@ -316,7 +316,7 @@ describe '
|
||||
end
|
||||
end
|
||||
|
||||
background do
|
||||
before do
|
||||
distributor1.update_attribute(:abn, '12345678')
|
||||
|
||||
visit spree.edit_admin_order_path(order)
|
||||
|
||||
@@ -9,7 +9,7 @@ describe '
|
||||
include WebHelper
|
||||
include AuthenticationHelper
|
||||
|
||||
background do
|
||||
before do
|
||||
@distributors = (1..3).map { create(:distributor_enterprise) }
|
||||
end
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user