fix rdoc test, closes #270
This commit is contained in:
parent
e001d62669
commit
5044802450
|
@ -73,7 +73,7 @@ class Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def assert_like(a,b)
|
||||
pattern = /\s*\n\s*| id=['"][^"']*["']/
|
||||
pattern = /id=['"][^"']*["']|\s+/
|
||||
assert_equal a.strip.gsub(pattern, ""), b.strip.gsub(pattern, "")
|
||||
end
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ class RdocTest < Test::Unit::TestCase
|
|||
end
|
||||
get '/'
|
||||
assert ok?
|
||||
assert_like 'THIS. IS.<P>SPARTA</P>!', body
|
||||
assert_like 'THIS. IS. <P>SPARTA</P>!', body
|
||||
end
|
||||
|
||||
it "renders with file layouts" do
|
||||
|
|
Loading…
Reference in New Issue