test/test_app.rb in gollum-2.1.6 vs test/test_app.rb in gollum-2.1.7

- old
+ new

@@ -48,10 +48,18 @@ assert_equal 'abc', page_2.raw_data assert_equal 'def', page_2.version.message assert_not_equal page_1.version.sha, page_2.version.sha end + test "edit page with slash" do + page_1 = @wiki.page('A') + post "/edit/A", :content => 'abc', :page => 'A', :path => '/////', + :format => page_1.format, :message => 'def' + follow_redirect! + assert last_response.ok? + end + test "edits page header footer and sidebar" do commits = @wiki.repo.commits('master').size page_1 = @wiki.page('A') header_1 = page_1.header foot_1 = page_1.footer @@ -174,9 +182,10 @@ test "guards against creation of existing page" do name = "A" post "/create", :content => 'abc', :page => name, :format => 'markdown', :message => 'def' + follow_redirect! assert last_response.ok? @wiki.clear_cache page = @wiki.page(name) assert_not_equal 'abc', page.raw_data