summaryrefslogtreecommitdiffstats
path: root/test/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-10-19 10:23:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-10-19 10:23:06 +0000
commit77add1315ba0386725c69f0fb64aaa3f7455eec8 (patch)
tree701e1acdaabdfd0fcb6169e2283a578bb045e355 /test/helpers
parentdc84b108880c699bb14908752ca2815a9b99daa5 (diff)
downloadredmine-77add1315ba0386725c69f0fb64aaa3f7455eec8.tar.gz
redmine-77add1315ba0386725c69f0fb64aaa3f7455eec8.zip
Return to version page after the issue is created (#28138).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18756 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/helpers')
-rw-r--r--test/helpers/version_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/helpers/version_helper_test.rb b/test/helpers/version_helper_test.rb
index 9bdb49749..697ed5746 100644
--- a/test/helpers/version_helper_test.rb
+++ b/test/helpers/version_helper_test.rb
@@ -62,7 +62,7 @@ class VersionsHelperTest < Redmine::HelperTest
# href should contain the following params:
# fixed_version_id=3
# tracker_id=1
- assert_select_in link_to_new_issue(version, project), '[href=?]', '/projects/ecookbook/issues/new?issue%5Bfixed_version_id%5D=3&issue%5Btracker_id%5D=1', :text => 'New issue'
+ assert_select_in link_to_new_issue(version, project), '[href=?]', '/projects/ecookbook/issues/new?back_url=%2Fversions%2F3&issue%5Bfixed_version_id%5D=3&issue%5Btracker_id%5D=1', :text => 'New issue'
end
def test_link_to_new_issue_should_return_nil_if_version_status_is_not_open
@@ -107,6 +107,6 @@ class VersionsHelperTest < Redmine::HelperTest
User.current = User.find(2)
# href should contain param tracker_id=2 because for tracker_id 1, user has only readonly permissions on fixed_version_id
- assert_select_in link_to_new_issue(version, project), '[href=?]', '/projects/ecookbook/issues/new?issue%5Bfixed_version_id%5D=3&issue%5Btracker_id%5D=2'
+ assert_select_in link_to_new_issue(version, project), '[href=?]', '/projects/ecookbook/issues/new?back_url=%2Fversions%2F3&issue%5Bfixed_version_id%5D=3&issue%5Btracker_id%5D=2'
end
end