diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2018-04-25 10:29:58 +0000 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2018-05-01 13:09:12 +0000 |
commit | 32562407886c8536187101d69a6c73e95ebcd25f (patch) | |
tree | a7d8459ea10bf5e13ee39baa143a7e668eefd530 /activerecord/test/cases/arel/attributes | |
parent | a42fb70a152ee05725685a8f68e3e8e2ddda4b36 (diff) | |
download | rails-32562407886c8536187101d69a6c73e95ebcd25f.tar.gz rails-32562407886c8536187101d69a6c73e95ebcd25f.tar.bz2 rails-32562407886c8536187101d69a6c73e95ebcd25f.zip |
Make `Arel::Test` subclass of `ActiveSupport::TestCase`
not `Minitest::Test` to address `CustomCops/RefuteNot` and `CustomCops/AssertNot` offenses
for Arel test cases
Also including `ActiveSupport::Testing::Assertions` to `Arel::Spec`
and add test/unit backwards compatibility methods
Fixes #32720
Diffstat (limited to 'activerecord/test/cases/arel/attributes')
-rw-r--r-- | activerecord/test/cases/arel/attributes/attribute_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/arel/attributes/attribute_test.rb b/activerecord/test/cases/arel/attributes/attribute_test.rb index 52573021a5..671e273543 100644 --- a/activerecord/test/cases/arel/attributes/attribute_test.rb +++ b/activerecord/test/cases/arel/attributes/attribute_test.rb @@ -978,7 +978,7 @@ module Arel table = Table.new(:foo) condition = table["id"].eq("1") - refute table.able_to_type_cast? + assert_not table.able_to_type_cast? condition.to_sql.must_equal %("foo"."id" = '1') end |