Commit 204d9b7ec1015c484da1a4567984d84f40748f1c
1 parent
ea7f2e14
Exists in
colab
and in
4 other branches
Moved password generation on default mezuro user to the users factory
Signed-off-by: Eduardo Silva <duduktamg@hotmail.com>
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
db/seeds.rb
... | ... | @@ -7,10 +7,10 @@ |
7 | 7 | # Mayor.create(name: 'Emanuel', city: cities.first) |
8 | 8 | |
9 | 9 | # Default mezuro user, the owner of the public kalibro configurations |
10 | -default_user = FactoryGirl.create(:mezuro_user, password: Devise.friendly_token.first(10)) | |
10 | +default_user = FactoryGirl.create(:mezuro_user) | |
11 | 11 | default_user.save |
12 | 12 | |
13 | -# The database should have only the default public | |
13 | +# The database should have only the default public | |
14 | 14 | # configurations when this file is executed |
15 | 15 | kalibro_configurations = KalibroConfiguration.all |
16 | 16 | kalibro_configurations.each do |configuration| | ... | ... |