Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Mar 12, 2024
1 parent 8e94ed2 commit 7e3af19
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions spec/fabricators/friend_domain_fabricator.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/fabricators/instance_info_fabricator.rb
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion spec/fabricators/pending_follow_request_fabricator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion spec/fabricators/pending_status_fabricator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7e3af19

Please sign in to comment.