Skip to content

Commit

Permalink
sequence for user factory
Browse files Browse the repository at this point in the history
  • Loading branch information
mooreniemi committed Jun 20, 2016
1 parent 3e60553 commit dbf8608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/factories/user.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FactoryGirl.define do
factory :user do
username { Faker::Internet.user_name }
sequence(:username) {|n| "#{Faker::Internet.user_name}_#{n}" }
name { Faker::Name.name }
email { Faker::Internet.free_email }
password { Faker::Internet.password }
Expand Down

0 comments on commit dbf8608

Please sign in to comment.