1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

"Use assert_nil if expecting nil. This will fail in minitest 6."

This commit is contained in:
Akira Matsuda 2016-12-14 18:36:59 +09:00
parent 1f7a3b5847
commit 07898d4a43

View file

@ -1300,7 +1300,7 @@ HAML
def test_local_assigns_dont_modify_class def test_local_assigns_dont_modify_class
assert_equal("bar\n", render("= foo", :locals => {:foo => 'bar'})) assert_equal("bar\n", render("= foo", :locals => {:foo => 'bar'}))
assert_equal(nil, defined?(foo)) assert_nil(defined?(foo))
end end
def test_object_ref_with_nil_id def test_object_ref_with_nil_id