Skip to content

Commit

Permalink
Added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Feb 22, 2010
1 parent 30416d3 commit 13d11f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions actionpack/test/controller/output_escaping_test.rb
Expand Up @@ -16,4 +16,11 @@ class OutputEscapingTest < ActiveSupport::TestCase
assert_equal "<", SafeERB::Util.h("<".html_safe)
end

test "Standard library's ERB should behave like Matz intended" do
assert_equal 'YO&', ERB.new("YO").result + "&"
end

test "SafeERB should behave like the Rails team intended" do
assert_equal 'YO&amp;', SafeERB.new("YO").result + "&"
end
end

0 comments on commit 13d11f7

Please sign in to comment.