uses FactoryGirl helpers

This commit is contained in:
Manuel Wiedenmann 2013-09-18 12:44:41 +02:00
parent 1cf2145ff6
commit f462e70e49
17 changed files with 65 additions and 63 deletions

View file

@ -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