Bundle update
This commit is contained in:
parent
b49bfb0d8c
commit
8a5c130875
13 changed files with 62 additions and 61 deletions
|
|
@ -1,6 +1,6 @@
|
|||
require 'factory_girl'
|
||||
require 'factory_bot'
|
||||
|
||||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
|
||||
factory :_article do
|
||||
unit { Faker::Unit.unit }
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
require 'factory_girl'
|
||||
require 'factory_bot'
|
||||
|
||||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
|
||||
# requires order
|
||||
factory :group_order do
|
||||
ordergroup { create(:user, groups: [FactoryGirl.create(:ordergroup)]).ordergroup }
|
||||
ordergroup { create(:user, groups: [FactoryBot.create(:ordergroup)]).ordergroup }
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
require 'factory_girl'
|
||||
require 'factory_bot'
|
||||
|
||||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
|
||||
# requires order_article
|
||||
factory :group_order_article do
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
require 'factory_girl'
|
||||
require 'factory_bot'
|
||||
|
||||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
|
||||
factory :order do
|
||||
starts { Time.now }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
require 'factory_girl'
|
||||
require 'factory_bot'
|
||||
|
||||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
|
||||
factory :supplier do
|
||||
name { Faker::Company.name.truncate(30) }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
require 'factory_girl'
|
||||
require 'factory_bot'
|
||||
|
||||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
|
||||
factory :user do
|
||||
sequence(:nick) { |n| "user#{n}"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue