add some rspec tests for supplier and article
This commit is contained in:
parent
7fa8193010
commit
3c264f6225
8 changed files with 110 additions and 2 deletions
|
|
@ -4,8 +4,8 @@ FactoryGirl.define do
|
|||
|
||||
factory :user do
|
||||
sequence(:nick) { |n| "user#{n}"}
|
||||
first_name 'John'
|
||||
email { "#{nick}@foodcoop.test" }
|
||||
first_name { Faker::Name.first_name }
|
||||
email { Faker::Internet.email }
|
||||
password { new_random_password }
|
||||
|
||||
factory :admin do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue