correct test that does not work with discobot

This commit is contained in:
Sam 2017-12-04 18:20:05 +11:00
parent a9bcdd7f27
commit d041377ccf

View File

@ -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