Commit 75ed48b3c348eea2f8528db6f2f722322e1f84c5
Exists in
colab
and in
4 other branches
Merge pull request #267 from mezuro/seeds
Removed factory girl dependency from seeds
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 |