end
end
+ test "bulk_edit should hide follow button when project is not changed" do
+ @request.session[:user_id] = 2
+ post(
+ :bulk_edit,
+ :params => {
+ :ids => [1, 3],
+ :issue => {
+ :project_id => "",
+ }
+ }
+ )
+ assert_response :success
+
+ assert_select 'form#bulk_edit_form[action=?]', '/issues/bulk_update' do
+ assert_select 'input[type=submit]', 1 do
+ assert_select '[name=?]', 'commit', 1
+ assert_select '[name=?]', 'follow', 0
+ end
+ end
+ end
+
def test_get_bulk_edit_on_different_projects
@request.session[:user_id] = 2
get(:bulk_edit, :params => {:ids => [1, 2, 6]})