Commit f43e94f018374716dae4b8bd975eefbe66243016
1 parent
f4de5246
Exists in
colab
and in
4 other branches
Removed factory girl dependency from seeds
Signed-off-by: Pedro Scocco <pedroscocco@gmail.com>
Showing
2 changed files
with
1 additions
and
6 deletions
Show diff stats
db/seeds.rb
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | 8 | ||
| 9 | # Default mezuro user, the owner of the public kalibro configurations | 9 | # Default mezuro user, the owner of the public kalibro configurations |
| 10 | password = Devise.friendly_token | 10 | password = Devise.friendly_token |
| 11 | -default_user = FactoryGirl.create(:mezuro_user, password: password) | 11 | +default_user = User.create(name: "Mezuro Default user", email: "mezuro@librelist.com", password: password) |
| 12 | 12 | ||
| 13 | puts "-- Default user created:" | 13 | puts "-- Default user created:" |
| 14 | puts " Email: #{default_user.email}" | 14 | puts " Email: #{default_user.email}" |
spec/factories/users.rb
| @@ -12,11 +12,6 @@ FactoryGirl.define do | @@ -12,11 +12,6 @@ FactoryGirl.define do | ||
| 12 | password "password" | 12 | password "password" |
| 13 | end | 13 | end |
| 14 | 14 | ||
| 15 | - factory :mezuro_user do | ||
| 16 | - name "Mezuro Default user" | ||
| 17 | - email "mezuro@librelist.com" | ||
| 18 | - end | ||
| 19 | - | ||
| 20 | trait :with_id do | 15 | trait :with_id do |
| 21 | sequence(:id, 1) | 16 | sequence(:id, 1) |
| 22 | end | 17 | end |