From d041377ccf587d0c43ff3a59a5e24708821cc90f Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 4 Dec 2017 18:20:05 +1100 Subject: [PATCH] correct test that does not work with discobot --- spec/components/admin_user_index_query_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/components/admin_user_index_query_spec.rb b/spec/components/admin_user_index_query_spec.rb index 6604b48d52a..2eee6d48521 100644 --- a/spec/components/admin_user_index_query_spec.rb +++ b/spec/components/admin_user_index_query_spec.rb @@ -130,7 +130,7 @@ describe AdminUserIndexQuery do users = ::AdminUserIndexQuery.new(order: "last_emailed", ascending: true).find_users expect(users.where('users.id > -2').count).to eq(2) - expect(users.first.username).to eq("system") + expect(users.where('users.id > -2').order('users.id asc').first.username).to eq("system") expect(users.first.last_emailed_at).to eq(nil) end