From 812fe90ecaef58f1dbe16c3fdfea79e14e7bbc9d Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 20 May 2017 17:09:40 +0200 Subject: Ensure unique identifiers in fabricated objects in tests (#3173) --- spec/fabricators/user_fabricator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/fabricators/user_fabricator.rb') diff --git a/spec/fabricators/user_fabricator.rb b/spec/fabricators/user_fabricator.rb index 16b3b1f6f..cf51fe81d 100644 --- a/spec/fabricators/user_fabricator.rb +++ b/spec/fabricators/user_fabricator.rb @@ -1,6 +1,6 @@ Fabricator(:user) do account - email { Faker::Internet.email } + email { sequence(:email) { |i| "#{i}#{Faker::Internet.email}" } } password "123456789" confirmed_at { Time.now } end -- cgit