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
|
FactoryGirl.define do
|
||||||
factory :client do
|
factory :client do
|
||||||
name "MyString"
|
name {{ Faker::Lorem.word }}
|
||||||
key "MyString"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue