fix factories
This commit is contained in:
parent
246492c546
commit
ae049d523e
3 changed files with 11 additions and 9 deletions
|
@ -11,8 +11,7 @@
|
|||
|
||||
FactoryGirl.define do
|
||||
factory :client do
|
||||
name "MyString"
|
||||
key "MyString"
|
||||
name {{ Faker::Lorem.word }}
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -12,7 +12,11 @@
|
|||
|
||||
FactoryGirl.define do
|
||||
factory :user do
|
||||
name { Faker::Internet.user_name }
|
||||
|
||||
factory :penning do
|
||||
penning true
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue