Merge pull request #391 from sgmap/fix_email_collision_in_tests

Fix email collision in tests
This commit is contained in:
gregoirenovel 2017-06-01 18:23:56 +02:00 committed by GitHub
commit 2029e8f031
4 changed files with 4 additions and 4 deletions

View file

@ -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'

View file

@ -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'

View file

@ -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'

View file

@ -29,6 +29,6 @@ describe 'admin/gestionnaires/index.html.haml', type: :view do
array: true))
render
end
it { expect(rendered).to match(/gest\d+@plop.com/) }
it { expect(rendered).to match(/gest\d+@gest.com/) }
end
end