Update test
The test passes when verified manually using bin/gollum. Without a running server the test will fail so it has been commented out. If there's an easy way to mock Rack::Server then the test can be restored.
This commit is contained in:
@@ -262,6 +262,9 @@ context "Frontend" do
|
|||||||
page2 = @wiki.page('A')
|
page2 = @wiki.page('A')
|
||||||
assert_equal page1.version.sha, page2.version.sha
|
assert_equal page1.version.sha, page2.version.sha
|
||||||
end
|
end
|
||||||
|
=begin
|
||||||
|
# redirects are now handled by class MapGollum in bin/gollum
|
||||||
|
# they should be set in config.ru
|
||||||
|
|
||||||
test "redirects from 'base_path' or 'base_path/' to 'base_path/Home'" do
|
test "redirects from 'base_path' or 'base_path/' to 'base_path/Home'" do
|
||||||
Precious::App.set(:wiki_options, {})
|
Precious::App.set(:wiki_options, {})
|
||||||
@@ -279,6 +282,7 @@ context "Frontend" do
|
|||||||
# Reset base path
|
# Reset base path
|
||||||
Precious::App.set(:wiki_options, { :base_path => nil })
|
Precious::App.set(:wiki_options, { :base_path => nil })
|
||||||
end
|
end
|
||||||
|
=end
|
||||||
|
|
||||||
test "author details in session are used" do
|
test "author details in session are used" do
|
||||||
page1 = @wiki.page('A')
|
page1 = @wiki.page('A')
|
||||||
|
|||||||
Reference in New Issue
Block a user