Feature testing user specs

This commit is contained in:
Gopesh Tulsyan 2014-05-15 17:28:08 +05:30
parent c6f2b4f641
commit 98e3784eba
4 changed files with 164 additions and 3 deletions

View file

@ -1,8 +1,7 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :user do
email 'example@example.com'
sequence(:email) { |n| "example#{n}@example.com" }
password 'changeme'
password_confirmation 'changeme'
confirmed_at Time.now