Skip to content

Commit

Permalink
Fix deprecation warning: DEPRECATED: Use assert_nil if expecting nil
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Mar 12, 2022
1 parent a668915 commit 04b2edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/models/otp_authenticatable_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ def setup
recovery = u.next_otp_recovery_tokens

assert u.valid_otp_recovery_token? recovery.fetch(0)
assert_equal nil, u.valid_otp_recovery_token?(recovery.fetch(0))
assert_nil u.valid_otp_recovery_token?(recovery.fetch(0))
assert u.valid_otp_recovery_token? recovery.fetch(2)
end

end
end

0 comments on commit 04b2edf

Please sign in to comment.