Skip to content
Snippets Groups Projects
Commit 812fe90e authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Ensure unique identifiers in fabricated objects in tests (#3173)

parent 6c1122a1
No related branches found
No related tags found
No related merge requests found
Fabricator(:account_domain_block) do
account_id 1
domain "MyString"
account
domain 'example.com'
end
Fabricator(:account) do
username { Faker::Internet.user_name(nil, %w(_)) }
username { sequence(:username) { |i| "#{Faker::Internet.user_name(nil, %w(_))}#{i}" } }
last_webfingered_at { Time.now.utc }
end
Fabricator(:preview_card) do
status_id 1
url "MyString"
html "MyText"
status
url 'http://example.com'
end
Fabricator(:tag) do
name "MyString"
name { sequence(:hashtag) { |i| "#{Faker::Lorem.word}#{i}" } }
end
Fabricator(:user) do
account
email { Faker::Internet.email }
email { sequence(:email) { |i| "#{i}#{Faker::Internet.email}" } }
password "123456789"
confirmed_at { Time.now }
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment