mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:57:36 +08:00
DEV: Order links by domain in spec
Should fix spec failing in macOS pgsql 11.3
This commit is contained in:
parent
232d277833
commit
b44748e503
|
@ -34,7 +34,7 @@ describe UserSummarySerializer do
|
|||
topic = Fabricate(:topic)
|
||||
post = Fabricate(:post_with_external_links, user: topic.user, topic: topic)
|
||||
TopicLink.extract_from(post)
|
||||
TopicLink.where(topic_id: topic.id).order(url: :asc).each_with_index do |link, index|
|
||||
TopicLink.where(topic_id: topic.id).order(domain: :asc).each_with_index do |link, index|
|
||||
index.times do |i|
|
||||
TopicLinkClick.create(topic_link: link, ip_address: "192.168.1.#{i + 1}")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user