public this repo is viewable by everyone
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/nex3/haml.git
test case for classes including TagHelper
chriseppstein (author)
16 days ago
nex3 (committer)
16 days ago
commit  9187180ae2a5c58c03a0e40b9ae32e507f1b8a0a
tree    2b43159a2b5ba68bb2a01fb0b59f655ec7e94505
parent  6f40855ed1156f4da92e6059c2ff4982b4e999e8
...
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.