Skip to content

Commit

Permalink
Addedd username to factory girl
Browse files Browse the repository at this point in the history
  • Loading branch information
gabceb committed Feb 20, 2013
1 parent 6c0ece5 commit 5fcd900
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/factories.rb
Expand Up @@ -11,6 +11,10 @@
"#{rand(11111111...99999999)}"
end

sequence :username do |n|
"user#{n}"
end

factory :channel do |f|
f.name "Test channel"
end
Expand All @@ -21,5 +25,6 @@
f.password { FactoryGirl.generate(:password)}
f.email { FactoryGirl.generate(:email) }
f.ido_id { FactoryGirl.generate(:ido_id) }
f.username { FactoryGirl.generate(:username) }
end
end

0 comments on commit 5fcd900

Please sign in to comment.