add some rspec tests for supplier and article

This commit is contained in:
wvengen 2013-07-14 02:49:40 +02:00
parent 7fa8193010
commit 3c264f6225
8 changed files with 110 additions and 2 deletions

View file

@ -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