Project

General

Profile

Bug #1868 ยป test_erb.rb

test that passes in Ruby 1.8.6 but fails in Ruby 1.8.7 - jfahrenkrug (Johannes Fahrenkrug), 08/03/2009 08:32 PM

 
require 'test/unit'
require 'erb'

class TestERB < Test::Unit::TestCase

def test_single_line_comment
str = <<HDOC
<%place = "world"%>
<% # this is a valid comment %>
hello <%= place %>
HDOC

e = ERB.new(str)
result = e.result
assert_match(/hello world/, result)
end

end
    (1-1/1)