Permalink
Browse files

fix rdoc test, closes #270

  • Loading branch information...
1 parent e001d62 commit 504480245077f64802449c704e6bd19c94d2d51a @rkh rkh committed May 11, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 test/helper.rb
  2. +1 −1 test/rdoc_test.rb
View
2 test/helper.rb
@@ -73,7 +73,7 @@ def assert_body(value)
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
2 test/rdoc_test.rb
@@ -36,7 +36,7 @@ def rdoc_app(&block)
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

0 comments on commit 5044802

Please sign in to comment.