Fix interpolation in Haml string for test

This commit is contained in:
Norman Clarke 2012-05-22 01:42:53 -03:00
parent 61e9511d9d
commit db30b8f55f
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ end
class JavascriptFilterTest < MiniTest::Unit::TestCase
test "should never HTML-escape ampersands" do
html = "<script type='text/javascript'>\n //<![CDATA[\n & < > &\n //]]>\n</script>\n"
haml = ":javascript\n & < > #{"&"}"
haml = %Q{:javascript\n & < > \#{"&"}}
assert_equal(html, render(haml, :escape_html => true))
end