fix factories

This commit is contained in:
Ilion Beyst 2015-09-08 13:37:30 +02:00
parent 246492c546
commit ae049d523e
3 changed files with 11 additions and 9 deletions

View file

@ -11,8 +11,7 @@
FactoryGirl.define do FactoryGirl.define do
factory :client do factory :client do
name "MyString" name {{ Faker::Lorem.word }}
key "MyString"
end end
end end

View file

@ -14,11 +14,10 @@
FactoryGirl.define do FactoryGirl.define do
factory :transaction do factory :transaction do
debtor nil debtor
creditor nil creditor
amount 1 amount { rand(100) }
origin "MyString" origin 'FactoryGirl'
message "MyString" message { Faker::Lorem.sentence }
end end
end end

View file

@ -12,7 +12,11 @@
FactoryGirl.define do FactoryGirl.define do
factory :user do factory :user do
name { Faker::Internet.user_name }
factory :penning do
penning true
end
end end
end end