From bc4fc0edd94066bc490ef857932d5dec5ee74bd8 Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Sun, 11 Nov 2012 13:14:25 -0700 Subject: [PATCH] Fix gitcode test --- test/test_gitcode.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/test_gitcode.rb b/test/test_gitcode.rb index 0a7890e9..807e3c02 100644 --- a/test/test_gitcode.rb +++ b/test/test_gitcode.rb @@ -25,15 +25,13 @@ context "gitcode" do end test 'that the rendered output is correctly fetched and rendered as html code' do - assert_equal %Q{

a

\n\n
<ol class=\"tree\">\n  <li class=\"file\"><a href=\"0\">0</a></li>\n</ol>\n
\n\n

b

}, @rendered + assert_equal %Q{

a

\n\n
<ol class=\"tree\">\n  <li class=\"file\">\n    <a href=\"0\"><span class=\"icon\"></span>0</a>\n  </li>\n</ol>\n
\n\n

b

}, @rendered end test 'contents' do g = Gollum::Gitcode.new 'github/gollum/master/test/file_view/1_file.txt' - assert_equal g.contents, %{
    -
  1. 0
  2. -
} + assert_equal g.contents, %{
    \n
  1. \n 0\n
  2. \n
\n} end teardown do