vendor/radius/test/radius_test.rb in radiant-0.8.0 vs vendor/radius/test/radius_test.rb in radiant-0.8.1

- old
+ new

@@ -195,9 +195,15 @@ def test_parse_tag__binding_render_tag define_tag('test') { |tag| "Hello #{tag.attr['name']}!" } define_tag('hello') { |tag| tag.render('test', tag.attr) } assert_parse_output 'Hello John!', '<r:hello name="John" />' end + + def test_accessing_tag_attributes_through_tag_indexer + define_tag('test') { |tag| "Hello #{tag['name']}!" } + assert_parse_output 'Hello John!', '<r:test name="John" />' + end + def test_parse_tag__binding_render_tag_with_block define_tag('test') { |tag| "Hello #{tag.expand}!" } define_tag('hello') { |tag| tag.render('test') { tag.expand } } assert_parse_output 'Hello John!', '<r:hello>John</r:hello>' end \ No newline at end of file