public this repo is viewable by everyone
Fork of nex3/haml
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/chriseppstein/haml.git
test case for classes including TagHelper
chriseppstein (author)
16 days ago
commit  3b8cf8b913620ba3e1df949d5cf386c0234da509
tree    c6a9926a6c75a5a2c95b1c0b8351b596b704eff7
parent  5548ed38e99e6bd68da13071f0ef340b52f441a9
...
169
170
171
 
 
 
 
 
 
 
 
 
 
 
172
173
...
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
0
@@ -169,5 +169,16 @@ class HelperTest < Test::Unit::TestCase
0
   def test_non_haml
0
     assert_equal("false\n", render("= non_haml { is_haml? }"))
0
   end
0
+
0
+ class ActsLikeTag
0
+ include ActionView::Helpers::TagHelper
0
+ def to_s
0
+ content_tag :p, 'some tag content'
0
+ end
0
+ end
0
+
0
+ def test_random_class_includes_tag_helper
0
+ assert_equal "<p>some tag content</p>", ActsLikeTag.new.to_s
0
+ end
0
 end
0
 

Comments

    No one has commented yet.