Remove error message assert

This commit is contained in:
David Zhang 2016-07-14 14:15:23 +08:00
parent 3435b5ddac
commit 9ef9c2fb64
1 changed files with 1 additions and 8 deletions

View File

@ -645,16 +645,9 @@ class TestFilters < JekyllUnitTest
context "to_integer filter" do
should "raise Exception when input is not integer or string" do
err_msg = <<-EOS.strip!
undefined method `to_i' for [1, 2]:Array
Did you mean? to_s
to_a
to_h
EOS
err = assert_raises NoMethodError do
assert_raises NoMethodError do
@filter.to_integer([1, 2])
end
assert_equal err_msg, err.message
end
should "return 0 when input is nil" do
assert_equal 0, @filter.to_integer(nil)