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
factory :client do
name "MyString"
key "MyString"
name {{ Faker::Lorem.word }}
end
end

View file

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

View file

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