Fix email collision in tests

This commit is contained in:
Mathieu Magnin 2017-06-01 17:44:56 +02:00
parent b3cec9d48b
commit c52a979199
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