Some tests for users controller, and fixed users#index
This commit is contained in:
parent
adfa9cc871
commit
4955481f14
9 changed files with 84 additions and 10 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
FactoryGirl.define do
|
||||
factory :user do
|
||||
email 'example@example.com'
|
||||
sequence(:email) {|n|'name#{n}@example.com'}
|
||||
password 'changeme'
|
||||
password_confirmation 'changeme'
|
||||
confirmed_at Time.now
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue