mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Merge branch 'master' of git://github.com/josephholsten/liquid into josephholsten/master
This commit is contained in:
@@ -34,7 +34,7 @@ module Liquid
|
|||||||
strainer
|
strainer
|
||||||
end
|
end
|
||||||
|
|
||||||
def respond_to?(method)
|
def respond_to?(method, include_private = false)
|
||||||
method_name = method.to_s
|
method_name = method.to_s
|
||||||
return false if method_name =~ INTERNAL_METHOD
|
return false if method_name =~ INTERNAL_METHOD
|
||||||
return false if @@required_methods.include?(method_name)
|
return false if @@required_methods.include?(method_name)
|
||||||
|
|||||||
@@ -13,4 +13,9 @@ class StrainerTest < Test::Unit::TestCase
|
|||||||
assert_equal true, strainer.respond_to?('size') # from the standard lib
|
assert_equal true, strainer.respond_to?('size') # from the standard lib
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_should_respond_to_two_parameters
|
||||||
|
strainer = Strainer.create(nil)
|
||||||
|
assert_equal true, strainer.respond_to?('size', false)
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user