mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
remove 2 failures that happen if discobot booted
This commit is contained in:
parent
a20bb931b1
commit
ccbcbd0343
|
@ -115,7 +115,7 @@ describe AdminUserIndexQuery do
|
|||
it "shows nil values first with asc" do
|
||||
users = ::AdminUserIndexQuery.new({ order: "last_emailed", ascending: true }).find_users
|
||||
|
||||
expect(users.count).to eq(2)
|
||||
expect(users.where('users.id > -2').count).to eq(2)
|
||||
expect(users.first.username).to eq("system")
|
||||
expect(users.first.last_emailed_at).to eq(nil)
|
||||
end
|
||||
|
@ -123,7 +123,7 @@ describe AdminUserIndexQuery do
|
|||
it "shows nil values last with desc" do
|
||||
users = ::AdminUserIndexQuery.new({ order: "last_emailed"}).find_users
|
||||
|
||||
expect(users.count).to eq(2)
|
||||
expect(users.where('users.id > -2').count).to eq(2)
|
||||
expect(users.first.last_emailed_at).to_not eq(nil)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user