diff options
author | Daniel Colson <danieljamescolson@gmail.com> | 2018-04-17 18:21:34 -0400 |
---|---|---|
committer | Daniel Colson <danieljamescolson@gmail.com> | 2018-04-19 08:11:33 -0400 |
commit | a1ac18671a90869ef81d02f2eafe8104e4eea34f (patch) | |
tree | 03109650a8d23c4284fafb90c077ab03185805e9 /activemodel/test/cases/secure_password_test.rb | |
parent | 087e0ccb72e7a1491701dd1d1d49746f745d9d68 (diff) | |
download | rails-a1ac18671a90869ef81d02f2eafe8104e4eea34f.tar.gz rails-a1ac18671a90869ef81d02f2eafe8104e4eea34f.tar.bz2 rails-a1ac18671a90869ef81d02f2eafe8104e4eea34f.zip |
Replace `assert !` with `assert_not`
This autocorrects the violations after adding a custom cop in
3305c78dcd.
Diffstat (limited to 'activemodel/test/cases/secure_password_test.rb')
-rw-r--r-- | activemodel/test/cases/secure_password_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/secure_password_test.rb b/activemodel/test/cases/secure_password_test.rb index d19e81a119..912cb6d5ab 100644 --- a/activemodel/test/cases/secure_password_test.rb +++ b/activemodel/test/cases/secure_password_test.rb @@ -187,7 +187,7 @@ class SecurePasswordTest < ActiveModel::TestCase test "authenticate" do @user.password = "secret" - assert !@user.authenticate("wrong") + assert_not @user.authenticate("wrong") assert @user.authenticate("secret") end |