Skip to content

Commit 621cefd

Browse files
committed
made user email a sequence in user factory to avoid problems with github CI
1 parent 2fa9914 commit 621cefd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/factories/users.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
#
2020
FactoryBot.define do
2121
factory :user do
22-
email { "admin@xronos.ch" }
22+
sequence(:email) { |n| "user#{n}@xronos.ch" }
2323
password { "Hubsch123123" }
2424
password_confirmation { "Hubsch123123" }
2525
admin { false }
2626
passphrase { ENV["REGISTRATION_PASSPHRASE"] }
2727
trait :admin do
28-
email { "admin@xronos.ch" }
28+
sequence(:email) { |n| "admin#{n}@xronos.ch" }
2929
admin { true }
3030
end
3131
factory :admin, traits: [:admin]

0 commit comments

Comments
 (0)