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 <class:TagAliasCorrectionTest>'. This will fail in MT6.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user