From b44748e5034817d95f51608c60fffcbbc79fdfdd Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Mon, 10 Aug 2020 10:25:13 -0400 Subject: [PATCH] DEV: Order links by domain in spec Should fix spec failing in macOS pgsql 11.3 --- spec/serializers/user_summary_serializer_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/serializers/user_summary_serializer_spec.rb b/spec/serializers/user_summary_serializer_spec.rb index 08270082f4..fdff682bbc 100644 --- a/spec/serializers/user_summary_serializer_spec.rb +++ b/spec/serializers/user_summary_serializer_spec.rb @@ -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