uses FactoryGirl helpers
This commit is contained in:
parent
1cf2145ff6
commit
f462e70e49
17 changed files with 65 additions and 63 deletions
|
|
@ -10,7 +10,7 @@ FactoryGirl.define do
|
|||
deposit { rand(10) < 8 ? 0 : [0.0, 0.80, 1.20, 12.00].sample }
|
||||
unit_quantity { rand(5) < 3 ? 1 : rand(1..20) }
|
||||
#supplier_id
|
||||
article_category { FactoryGirl.create :article_category }
|
||||
article_category { create :article_category }
|
||||
end
|
||||
|
||||
factory :article_category do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue