aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2016-12-30 20:19:11 +0000
committerYasuo Honda <yasuo.honda@gmail.com>2016-12-30 20:42:24 +0000
commitbb74794d85a68baee793bdad245ee4abbdc1fd41 (patch)
tree099db4053d16f8653dbde0243ef66bde82b75a0a /test
parentb26638ef041953992010590b31615c519fa0ea7d (diff)
downloadrails-bb74794d85a68baee793bdad245ee4abbdc1fd41.tar.gz
rails-bb74794d85a68baee793bdad245ee4abbdc1fd41.tar.bz2
rails-bb74794d85a68baee793bdad245ee4abbdc1fd41.zip
Address `Use assert_nil if expecting nil` warnings
Diffstat (limited to 'test')
-rw-r--r--test/test_select_manager.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_select_manager.rb b/test/test_select_manager.rb
index e6b13e748d..9a225edeec 100644
--- a/test/test_select_manager.rb
+++ b/test/test_select_manager.rb
@@ -1198,7 +1198,7 @@ module Arel
manager.ast.cores.last.set_quantifier.class.must_equal Arel::Nodes::Distinct
manager.distinct(false)
- manager.ast.cores.last.set_quantifier.must_equal nil
+ manager.ast.cores.last.set_quantifier.must_be_nil
end
it "chains" do
@@ -1217,7 +1217,7 @@ module Arel
manager.ast.cores.last.set_quantifier.must_equal Arel::Nodes::DistinctOn.new(table['id'])
manager.distinct_on(false)
- manager.ast.cores.last.set_quantifier.must_equal nil
+ manager.ast.cores.last.set_quantifier.must_be_nil
end
it "chains" do