diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-10-19 10:22:16 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-10-19 10:22:16 +0000 |
commit | dc84b108880c699bb14908752ca2815a9b99daa5 (patch) | |
tree | 3cd357848432ee6f0d7034d328ca17d416180aaf /test/functional | |
parent | ce867955f01159448ffb5db3e7f00ff540eb14dd (diff) | |
download | redmine-dc84b108880c699bb14908752ca2815a9b99daa5.tar.gz redmine-dc84b108880c699bb14908752ca2815a9b99daa5.zip |
Display new issue link in version page (#28138).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18755 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/versions_controller_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb index 8981c6932..44c683d7a 100644 --- a/test/functional/versions_controller_test.rb +++ b/test/functional/versions_controller_test.rb @@ -208,6 +208,14 @@ class VersionsControllerTest < Redmine::ControllerTest end end + def test_show_should_display_link_to_new_issue + @request.session[:user_id] = 1 + get :show, :params => {:id => 3} + + assert_response :success + assert_select 'a.icon.icon-add', :text => 'New issue' + end + def test_new @request.session[:user_id] = 2 get :new, :params => {:project_id => '1'} |