Permalink
Browse files

Add a test case for issue 936

  • Loading branch information...
skade committed Jan 28, 2013
1 parent 3a00f4b commit 87049be0e30d101bc02a4bca4d7df50e32f32ebf
Showing with 6 additions and 0 deletions.
  1. +6 −0 padrino-helpers/test/test_asset_tag_helpers.rb
@@ -70,6 +70,12 @@ def flash
assert_has_tag('a#binky.first', :content => "Sign up", :href => '/register') { actual_link }
end
should "escape the link text" do
actual_link = link_to('/register', :class => 'first', :id => 'binky') { "<>" }
assert_has_tag('a#binky.first', :href => '/register') { actual_link }
assert_match "&lt;&gt;", actual_link
end
should "display link block element in haml" do
visit '/haml/link_to'
assert_have_selector :a, :content => "Test 1 No Block", :href => '/test1', :class => 'test', :id => 'test1'

0 comments on commit 87049be

Please sign in to comment.