diff --git a/spec/fabricators/account_domain_block_fabricator.rb b/spec/fabricators/account_domain_block_fabricator.rb index fbbddadd5d279bcb7872f94f6cdbf1ca922d0e7d..2ad4b67a99bb4b3e7e2e112226f8b0340fb88a6f 100644 --- a/spec/fabricators/account_domain_block_fabricator.rb +++ b/spec/fabricators/account_domain_block_fabricator.rb @@ -1,4 +1,4 @@ Fabricator(:account_domain_block) do - account_id 1 - domain "MyString" + account + domain 'example.com' end diff --git a/spec/fabricators/account_fabricator.rb b/spec/fabricators/account_fabricator.rb index 68a75807957d30e2a5039ed877de5983d4485db7..446f8ea27931f4aad5190173e7faa9537a8c65ee 100644 --- a/spec/fabricators/account_fabricator.rb +++ b/spec/fabricators/account_fabricator.rb @@ -1,4 +1,4 @@ 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 diff --git a/spec/fabricators/preview_card_fabricator.rb b/spec/fabricators/preview_card_fabricator.rb index 448a94e7ed873e2e71988ef70e5b03bb54088e7c..15b33815c6d8fdb17155653f332fcc4296b82b07 100644 --- a/spec/fabricators/preview_card_fabricator.rb +++ b/spec/fabricators/preview_card_fabricator.rb @@ -1,5 +1,4 @@ Fabricator(:preview_card) do - status_id 1 - url "MyString" - html "MyText" + status + url 'http://example.com' end diff --git a/spec/fabricators/tag_fabricator.rb b/spec/fabricators/tag_fabricator.rb index d83040990978c06dbd8dededc773ef4dce3c7cc5..33d57c9281f014f73c9ed00a77f8628785c75819 100644 --- a/spec/fabricators/tag_fabricator.rb +++ b/spec/fabricators/tag_fabricator.rb @@ -1,3 +1,3 @@ Fabricator(:tag) do - name "MyString" + name { sequence(:hashtag) { |i| "#{Faker::Lorem.word}#{i}" } } end diff --git a/spec/fabricators/user_fabricator.rb b/spec/fabricators/user_fabricator.rb index 16b3b1f6f659362179ed1931e07b327d976f4903..cf51fe81d0e6da68cc972c2eadb788bdc957fc67 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