Skip to content

Commit

Permalink
Merge pull request #391 from sgmap/fix_email_collision_in_tests
Browse files Browse the repository at this point in the history
Fix email collision in tests
  • Loading branch information
gregoirenovel committed Jun 1, 2017
2 parents b3cec9d + c52a979 commit 2029e8f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/factories/administrateur.rb
@@ -1,5 +1,5 @@
FactoryGirl.define do
sequence(:administrateur_email) { |n| "plop#{n}@plop.com" }
sequence(:administrateur_email) { |n| "admin#{n}@admin.com" }
factory :administrateur do
email { generate(:administrateur_email) }
password 'password'
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/gestionnaire.rb
@@ -1,5 +1,5 @@
FactoryGirl.define do
sequence(:gestionnaire_email) { |n| "gest#{n}@plop.com" }
sequence(:gestionnaire_email) { |n| "gest#{n}@gest.com" }
factory :gestionnaire do
email { generate(:gestionnaire_email) }
password 'password'
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/user.rb
@@ -1,5 +1,5 @@
FactoryGirl.define do
sequence(:user_email) { |n| "plop#{n}@plop.com" }
sequence(:user_email) { |n| "user#{n}@user.com" }
factory :user do
email { generate(:user_email) }
password 'password'
Expand Down
2 changes: 1 addition & 1 deletion spec/views/admin/gestionnaires/index.html.haml_spec.rb
Expand Up @@ -29,6 +29,6 @@
array: true))
render
end
it { expect(rendered).to match(/gest\d+@plop.com/) }
it { expect(rendered).to match(/gest\d+@gest.com/) }
end
end

0 comments on commit 2029e8f

Please sign in to comment.