mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 03:10:39 -07:00
Remove error logging
This commit is contained in:
@@ -780,7 +780,6 @@ class StandardFiltersTest < Minitest::Test
|
|||||||
{ 1 => "bar" },
|
{ 1 => "bar" },
|
||||||
["foo", 123, nil, true, false, Drop, ["foo"], { foo: "bar" }],
|
["foo", 123, nil, true, false, Drop, ["foo"], { foo: "bar" }],
|
||||||
]
|
]
|
||||||
errors = []
|
|
||||||
test_types.each do |first|
|
test_types.each do |first|
|
||||||
test_types.each do |other|
|
test_types.each do |other|
|
||||||
(@filters.methods - Object.methods).each do |method|
|
(@filters.methods - Object.methods).each do |method|
|
||||||
@@ -790,15 +789,12 @@ class StandardFiltersTest < Minitest::Test
|
|||||||
inputs << ([other] * (arg_count - 1)) if arg_count > 1
|
inputs << ([other] * (arg_count - 1)) if arg_count > 1
|
||||||
begin
|
begin
|
||||||
@filters.send(method, *inputs)
|
@filters.send(method, *inputs)
|
||||||
rescue Liquid::ArgumentError => e
|
rescue Liquid::ArgumentError, Liquid::ZeroDivisionError
|
||||||
errors << "#{method} returned #{e.message}"
|
nil
|
||||||
rescue Liquid::ZeroDivisionError => e
|
|
||||||
errors << "#{method} returned #{e.message}"
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
errors
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_where_no_target_value
|
def test_where_no_target_value
|
||||||
|
|||||||
Reference in New Issue
Block a user