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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user