Skip to content

Commit

Permalink
Avoid hanging indent in test for User#reset_2sv!
Browse files Browse the repository at this point in the history
I found this test really hard to read, so I thought I'd try to improve
matters.
  • Loading branch information
floehopper committed Nov 23, 2023
1 parent d493b73 commit a24e13a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/models/user_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,13 @@ def setup
end

should "record the event" do
assert_equal 1,
EventLog.where(
event_id: EventLog::TWO_STEP_RESET.id,
uid: @two_step_user.uid,
initiator: @super_admin,
).count
number_of_2sv_reset_events = EventLog.where(
event_id: EventLog::TWO_STEP_RESET.id,
uid: @two_step_user.uid,
initiator: @super_admin,
).count

assert_equal 1, number_of_2sv_reset_events
end
end

Expand Down

0 comments on commit a24e13a

Please sign in to comment.