mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Heisentest - suspicious logins report was not ordered by date
The specs needed an order even though none was supplied.
This commit is contained in:
@@ -1006,11 +1006,10 @@ describe Report do
|
||||
context "with data" do
|
||||
it "works" do
|
||||
SiteSetting.verbose_auth_token_logging = true
|
||||
freeze_time DateTime.parse('2017-03-01 12:00')
|
||||
|
||||
UserAuthToken.log(action: "suspicious", user_id: robin.id)
|
||||
UserAuthToken.log(action: "suspicious", user_id: joffrey.id)
|
||||
UserAuthToken.log(action: "suspicious", user_id: joffrey.id)
|
||||
UserAuthToken.log(action: "suspicious", user_id: joffrey.id, created_at: 2.hours.ago)
|
||||
UserAuthToken.log(action: "suspicious", user_id: joffrey.id, created_at: 3.hours.ago)
|
||||
UserAuthToken.log(action: "suspicious", user_id: robin.id, created_at: 1.hour.ago)
|
||||
|
||||
report = Report.find("suspicious_logins")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user