From dc84b108880c699bb14908752ca2815a9b99daa5 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 19 Oct 2019 10:22:16 +0000 Subject: 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 --- test/functional/versions_controller_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/functional') 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'} -- cgit v1.2.3