diff --git a/spec/fabricators/friend_domain_fabricator.rb b/spec/fabricators/friend_domain_fabricator.rb index 840f79ea3e4bd1..139cc9ab94d146 100644 --- a/spec/fabricators/friend_domain_fabricator.rb +++ b/spec/fabricators/friend_domain_fabricator.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true Fabricator(:friend_domain) do - domain 'example.com' - inbox_url 'https://example.com/inbox' + domain { sequence(:domain) { |i| "info-#{i}.example.com" } } + inbox_url { sequence(:inbox_url) { |i| "https://info-#{i}.example.com/inbox" } } active_state :idle passive_state :idle available true diff --git a/spec/fabricators/instance_info_fabricator.rb b/spec/fabricators/instance_info_fabricator.rb index a0bdb2b71334b0..ff53833a280b74 100644 --- a/spec/fabricators/instance_info_fabricator.rb +++ b/spec/fabricators/instance_info_fabricator.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true Fabricator(:instance_info) do - domain 'info.example.com' + domain { sequence(:domain) { |i| "info-#{i}.example.com" } } software 'mastodon' version '4.1.0' end diff --git a/spec/fabricators/pending_follow_request_fabricator.rb b/spec/fabricators/pending_follow_request_fabricator.rb index 5ec74d725faf9d..b1ef929e3b0a34 100644 --- a/spec/fabricators/pending_follow_request_fabricator.rb +++ b/spec/fabricators/pending_follow_request_fabricator.rb @@ -3,5 +3,5 @@ Fabricator(:pending_follow_request) do account { Fabricate.build(:account) } target_account { Fabricate.build(:account, locked: true) } - uri 'https://example.com/follow' + uri { sequence(:uri) { |i| "https://info-#{i}.example.com/follow" } } end diff --git a/spec/fabricators/pending_status_fabricator.rb b/spec/fabricators/pending_status_fabricator.rb index 796b10588e12ea..01849875331b97 100644 --- a/spec/fabricators/pending_status_fabricator.rb +++ b/spec/fabricators/pending_status_fabricator.rb @@ -3,5 +3,5 @@ Fabricator(:pending_status) do account { Fabricate.build(:account) } fetch_account { Fabricate.build(:account) } - uri { "https://example.com/#{Time.now.utc.nsec}" } + uri { sequence(:uri) { |i| "https://example.com/note-#{i}" } } end