From cd3b09b10ad26e2345c0457ffd9bd644f8d18108 Mon Sep 17 00:00:00 2001 From: evazion Date: Sat, 4 Feb 2017 05:54:32 -0600 Subject: [PATCH] tag_alias_correction_test.rb: fix assert_nil deprecation warning. Use assert_nil if expecting nil from /home/danbooru/src/danbooru/test/unit/tag_alias_correction_test.rb:29 in `block (3 levels) in '. This will fail in MT6. --- test/unit/tag_alias_correction_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/tag_alias_correction_test.rb b/test/unit/tag_alias_correction_test.rb index 1e2780d12..4ab8e7b7d 100644 --- a/test/unit/tag_alias_correction_test.rb +++ b/test/unit/tag_alias_correction_test.rb @@ -27,7 +27,7 @@ class TagAliasCorrectionTest < ActiveSupport::TestCase should "have the correct statistics hash" do assert_equal("zzz", @correction.statistics_hash["antecedent_cache"]) - assert_equal(nil, @correction.statistics_hash["consequent_cache"]) + assert_nil(@correction.statistics_hash["consequent_cache"]) assert_equal(-3, @correction.statistics_hash["antecedent_count"]) assert_equal(1, @correction.statistics_hash["consequent_count"]) end