thingspeak/spec/factories/user.rb

15 lines
345 B
Ruby
Raw Permalink Normal View History

FactoryGirl.define do
factory :user do
sequence(:login) {|n| "name#{n}" }
sequence(:email) {|n| "email#{n}@example.com" }
2014-09-24 02:29:52 +02:00
sequence(:authentication_token) {|n| "token#{n}" }
2014-03-14 00:16:35 +01:00
password "foobar88"
password_confirmation {|u| u.password}
bio ""
website ""
time_zone "London"
api_key 'ED1HVHNEH2BZD0AB'
end
end