public
Rubygem
Description: Liquid markup language. Save, customer facing template language for flexible web apps.
Homepage: http://www.liquidmarkup.org
Clone URL: git://github.com/tobi/liquid.git
Click here to lend your support to: liquid and make a donation at www.pledgie.com !
Fixed Strainer#respond_to? to accept two parameters
Joseph Anthony Pasquale Holsten (author)
Sun Nov 02 04:24:07 -0800 2008
commit  c15a6830637b280ebbf8d166e91a5558e58ce074
tree    3b79b059471d1f23c05a97a4d2d1d1a4a940813d
parent  3bfde37a53edc8502052696e53fde3758686b718
...
34
35
36
37
 
38
39
40
...
34
35
36
 
37
38
39
40
0
@@ -34,7 +34,7 @@ module Liquid
0
       strainer
0
     end
0
     
0
-    def respond_to?(method)
0
+    def respond_to?(method, include_private = false)
0
       method_name = method.to_s
0
       return false if method_name =~ INTERNAL_METHOD
0
       return false if @@required_methods.include?(method_name)
...
13
14
15
 
 
 
 
 
16
17
...
13
14
15
16
17
18
19
20
21
22
0
@@ -13,4 +13,9 @@ class StrainerTest < Test::Unit::TestCase
0
     assert_equal true, strainer.respond_to?('size') # from the standard lib
0
   end
0
   
0
+  def test_should_respond_to_two_parameters
0
+    strainer = Strainer.create(nil)
0
+    assert_equal true, strainer.respond_to?('size', false)
0
+  end
0
+  
0
 end
0
\ No newline at end of file

Comments