mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 02:10:41 -07:00
Raise FilterNotFound on use of non-existent filter
This commit is contained in:
@@ -156,7 +156,9 @@ class ContextTest < Test::Unit::TestCase
|
||||
assert_equal 'hi? hi!', context.invoke(:hi, 'hi?')
|
||||
|
||||
context = Context.new(@template)
|
||||
assert_equal 'hi?', context.invoke(:hi, 'hi?')
|
||||
assert_raises(FilterNotFound) {
|
||||
context.invoke(:hi, 'hi?')
|
||||
}
|
||||
|
||||
context.add_filters(filter)
|
||||
assert_equal 'hi? hi!', context.invoke(:hi, 'hi?')
|
||||
|
||||
Reference in New Issue
Block a user