diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-04-19 15:03:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-19 15:03:28 -0400 |
commit | 6fec9c27e5563d7c98e123c8d8eb8ef2f0c34b65 (patch) | |
tree | 69e4232782e4a499aa018ad3d713ccb57242d043 /activerecord/test/cases/persistence_test.rb | |
parent | d72990c63abb940108b9957dcac09fe04e93f3d1 (diff) | |
parent | a1ac18671a90869ef81d02f2eafe8104e4eea34f (diff) | |
download | rails-6fec9c27e5563d7c98e123c8d8eb8ef2f0c34b65.tar.gz rails-6fec9c27e5563d7c98e123c8d8eb8ef2f0c34b65.tar.bz2 rails-6fec9c27e5563d7c98e123c8d8eb8ef2f0c34b65.zip |
Merge pull request #32605 from composerinteralia/assert-not
Add RuboCop for `assert_not` over `assert !`
Diffstat (limited to 'activerecord/test/cases/persistence_test.rb')
-rw-r--r-- | activerecord/test/cases/persistence_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/persistence_test.rb b/activerecord/test/cases/persistence_test.rb index e4a65a48ca..e0c5725944 100644 --- a/activerecord/test/cases/persistence_test.rb +++ b/activerecord/test/cases/persistence_test.rb @@ -48,7 +48,7 @@ class PersistenceTest < ActiveRecord::TestCase end if test_update_with_order_succeeds.call("id DESC") - assert !test_update_with_order_succeeds.call("id ASC") # test that this wasn't a fluke and using an incorrect order results in an exception + assert_not test_update_with_order_succeeds.call("id ASC") # test that this wasn't a fluke and using an incorrect order results in an exception else # test that we're failing because the current Arel's engine doesn't support UPDATE ORDER BY queries is using subselects instead assert_sql(/\AUPDATE .+ \(SELECT .* ORDER BY id DESC\)\z/i) do |