diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-12-30 22:02:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-30 22:02:36 +0100 |
commit | ab109d3bf1c773da5e78ddc93bb6b55aebbb1c2a (patch) | |
tree | 099db4053d16f8653dbde0243ef66bde82b75a0a /test/test_select_manager.rb | |
parent | b26638ef041953992010590b31615c519fa0ea7d (diff) | |
parent | bb74794d85a68baee793bdad245ee4abbdc1fd41 (diff) | |
download | rails-ab109d3bf1c773da5e78ddc93bb6b55aebbb1c2a.tar.gz rails-ab109d3bf1c773da5e78ddc93bb6b55aebbb1c2a.tar.bz2 rails-ab109d3bf1c773da5e78ddc93bb6b55aebbb1c2a.zip |
Merge pull request #463 from yahonda/use_assert_nil
Address `Use assert_nil if expecting nil` warnings
Diffstat (limited to 'test/test_select_manager.rb')
-rw-r--r-- | test/test_select_manager.rb | 4 |
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 |