fix rdoc test, closes #270

This commit is contained in:
Konstantin Haase 2011-05-11 22:53:03 +02:00
parent e001d62669
commit 5044802450
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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