⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (313 Bytes)
Bug #1559
ยป test_erb.rb
test that passes in Ruby 1.8.6 but fails in Ruby 1.9.1 -
jyzhang (James Zhang)
, 06/03/2009 01:19 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)
Loading...