Skip to content

Commit 8555cfb

Browse files
committed
add functional test "bulk_edit should show follow button when project is selected"
git-svn-id: http://svn.redmine.org/redmine/trunk@20049 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 26a071a commit 8555cfb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

test/functional/issues_controller_test.rb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6429,6 +6429,27 @@ def test_get_bulk_edit
64296429
end
64306430
end
64316431

6432+
test "bulk_edit should show follow button when project is selected" do
6433+
@request.session[:user_id] = 2
6434+
post(
6435+
:bulk_edit,
6436+
:params => {
6437+
:ids => [1, 3],
6438+
:issue => {
6439+
:project_id => 2,
6440+
}
6441+
}
6442+
)
6443+
assert_response :success
6444+
6445+
assert_select 'form#bulk_edit_form[action=?]', '/issues/bulk_update' do
6446+
assert_select 'input[type=submit]', 2 do
6447+
assert_select '[name=?]', 'commit', 1
6448+
assert_select '[name=?]', 'follow', 1
6449+
end
6450+
end
6451+
end
6452+
64326453
def test_get_bulk_edit_on_different_projects
64336454
@request.session[:user_id] = 2
64346455
get(:bulk_edit, :params => {:ids => [1, 2, 6]})

0 commit comments

Comments
 (0)