summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-10-26 09:03:08 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-10-26 09:03:08 +0000
commitba083225b7403b826c634ca3d0ce777c8445daf0 (patch)
tree19048b22c351f853c2bef8a697378acad41e987e /test/functional
parent7f22cc611311b403a04e1d54ce75a4b4357651c3 (diff)
downloadredmine-ba083225b7403b826c634ca3d0ce777c8445daf0.tar.gz
redmine-ba083225b7403b826c634ca3d0ce777c8445daf0.zip
Return to section anchor after wiki section edit (#15182).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12239 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/wiki_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb
index 6bf93ea4f..9c59668c5 100644
--- a/test/functional/wiki_controller_test.rb
+++ b/test/functional/wiki_controller_test.rb
@@ -454,7 +454,7 @@ class WikiControllerTest < ActionController::TestCase
end
end
end
- assert_redirected_to '/projects/ecookbook/wiki/Page_with_sections'
+ assert_redirected_to '/projects/ecookbook/wiki/Page_with_sections#section-2'
assert_equal Redmine::WikiFormatting::Textile::Formatter.new(text).update_section(2, "New section content"), page.reload.content.text
end
@@ -477,7 +477,7 @@ class WikiControllerTest < ActionController::TestCase
end
end
end
- assert_redirected_to '/projects/ecookbook/wiki/Page_with_sections'
+ assert_redirected_to '/projects/ecookbook/wiki/Page_with_sections#section-2'
page.reload
assert_equal Redmine::WikiFormatting::Textile::Formatter.new(text).update_section(2, "New section content"), page.content.text
assert_equal 4, page.content.version