Closed jean-francois-labbe closed 10 years ago
I've got this problem too – any plans on merging the pr?
@cschell I haven't used this library in a while. The tests are failing for me when I merge that PR. Perhaps the updated version of gollum-lib
behaves slightly differently.
[ 2/13] #<Class:0x007ff003629878>#test_working_site_Home_html_content_is_uncommitted_version = 0.06 s
1) Failure:
test_working_site_Home_html_content_is_uncommitted_version(#<Class:0x007ff003629878>) [/Users/dreverri/src/gollum-site/test/test_site.rb:81]:
Expected /<p>Hello World\nHello World<\/p>/ to match "Hello World\nHello World".
[ 4/13] #<Class:0x007ff003628478>#test_embed_with_src = 0.07 s
2) Failure:
test_embed_with_src(#<Class:0x007ff003628478>) [/Users/dreverri/src/gollum-site/test/test_site.rb:152]:
Expected /<p><embed src="foo.html"><\/embed><\/p>/ to match "<embed src=\"foo.html\"></embed>".
[ 5/13] #<Class:0x007ff003628478>#test_link_with_irc_protocol = 0.06 s
3) Failure:
test_link_with_irc_protocol(#<Class:0x007ff003628478>) [/Users/dreverri/src/gollum-site/test/test_site.rb:147]:
Expected /<p><a href="irc:\/\/irc.freenode.net\/foo">Hello World<\/a><\/p>/ to match "<a href=\"irc://irc.freenode.net/foo\">Hello World</a>".
[ 6/13] #<Class:0x007ff003633760>#test_Footer_is_rendered_in__Layout = 0.06 s
4) Failure:
test_Footer_is_rendered_in__Layout(#<Class:0x007ff003633760>) [/Users/dreverri/src/gollum-site/test/test_site.rb:180]:
Expected /<p>hello<\/p>\n/ to match "hello\n\n".
[ 8/13] #<Class:0x007ff003633760>#test_Sidebar_is_rendered_in__Layout = 0.04 s
5) Failure:
test_Sidebar_is_rendered_in__Layout(#<Class:0x007ff003633760>) [/Users/dreverri/src/gollum-site/test/test_site.rb:185]:
Expected /<p>world<\/p>\n/ to match "world\n\n".
[ 9/13] #<Class:0x007ff00362afc0>#test_generate_static_site = 0.06 s
6) Failure:
test_generate_static_site(#<Class:0x007ff00362afc0>) [/Users/dreverri/src/gollum-site/test/test_site.rb:23]:
<[]> expected but was
<["/static.html"]>.
[11/13] #<Class:0x007ff00362afc0>#test_render_page_with_layout_and_link = 0.05 s
7) Failure:
test_render_page_with_layout_and_link(#<Class:0x007ff00362afc0>) [/Users/dreverri/src/gollum-site/test/test_site.rb:29]:
<"<html><p>Site test\n"> expected but was
<"<html>Site test\n">.
[12/13] #<Class:0x007ff00362afc0>#test_render_page_with_layout_from_parent_dir = 0.07 s
8) Failure:
test_render_page_with_layout_from_parent_dir(#<Class:0x007ff00362afc0>) [/Users/dreverri/src/gollum-site/test/test_site.rb:36]:
Expected /<html><p>Site test<\/p>.*\n/ to match "<html>Site test\n".
[13/13] #<Class:0x007ff00362afc0>#test_render_page_with_layout_from_sub_dir = 0.05 s
9) Failure:
test_render_page_with_layout_from_sub_dir(#<Class:0x007ff00362afc0>) [/Users/dreverri/src/gollum-site/test/test_site.rb:41]:
Expected /<html><body><p>Site test<\/p>.*\n/ to match "<html><body>Site test\n".
Adding a development dependency to github-markdown
fixed those tests. It seems gollum
supports directories now which fail some other tests.
Latest failed tests:
[ 9/13] #<Class:0x007f865c6256a8>#test_generate_static_site = 0.10 s
1) Failure:
test_generate_static_site(#<Class:0x007f865c6256a8>) [/Users/dreverri/src/gollum-site/test/test_site.rb:23]:
<[]> expected but was
<["/static.html"]>.
[11/13] #<Class:0x007f865c6256a8>#test_render_page_with_layout_and_link = 0.08 s
2) Failure:
test_render_page_with_layout_and_link(#<Class:0x007f865c6256a8>) [/Users/dreverri/src/gollum-site/test/test_site.rb:30]:
<"<a class=\"internal present\" href=\"/Page1.html#test\">Page1#test</a>\n"> expected but was
<"<a class=\"internal present\" href=\"/sub_dir/Page1\">Page1#test</a>\n">.
thanks, works for me now :)
Undefined method '>>' for "x"::String
To fix this use the last version of gollum-lib