test/test_pages_view.rb in gollum-2.1.4 vs test/test_pages_view.rb in gollum-2.1.6

- old
+ new

@@ -17,20 +17,20 @@ @page = Precious::Views::Pages.new end test "breadcrumb" do @page.instance_variable_set("@path", "Mordor/Eye-Of-Sauron/Saruman") - @page.instance_variable_set("@base_url", "/") + @page.instance_variable_set("@base_url", "") assert_equal '<a href="/pages/">Home</a> / <a href="/pages/Mordor/">Mordor</a> / <a href="/pages/Mordor/Eye-Of-Sauron/">Eye-Of-Sauron</a> / Saruman', @page.breadcrumb end test "breadcrumb with no path" do assert_equal 'Home', @page.breadcrumb end test "files_folders" do @page.instance_variable_set("@path", "Mordor") - @page.instance_variable_set("@base_url", "/") + @page.instance_variable_set("@base_url", "") results = [FakeResult.new("Mordor/Eye-Of-Sauron.md"), FakeResult.new("Mordor/Orc/Saruman.md"), FakeResult.new("Mordor/.gitkeep")] @page.instance_variable_set("@results", results) assert_equal %{<li><a href="/Mordor/Eye-Of-Sauron" class="file">Eye Of Sauron</a></li>\n<li><a href="/pages/Mordor/Orc/" class="folder">Orc</a></li>}, @page.files_folders end