end
end
+ test "bulk copy should show follow button when project is selected" do
+ @request.session[:user_id] = 2
+ post(
+ :bulk_edit,
+ :params => {
+ :ids => [1, 3],
+ :issue => {
+ :project_id => 2,
+ },
+ :copy => '1',
+ }
+ )
+ assert_response :success
+
+ assert_select 'form#bulk_edit_form[action=?]', '/issues/bulk_update' do
+ assert_select 'input[type=submit]', 2 do
+ assert_select '[name=?]', 'commit', 1
+ assert_select '[name=?]', 'follow', 1
+ end
+ end
+ end
+
def test_get_bulk_copy_without_add_issues_permission_should_not_propose_current_project_as_target
user = setup_user_with_copy_but_not_add_permission
@request.session[:user_id] = user.id