Commit fc464f1f authored by Valery Sizov's avatar Valery Sizov

Multiple issue assignee: fixed services/issues/update_service by using new NoteSummary

parent 0f2a9681
......@@ -84,7 +84,7 @@ module SystemNoteService
"assigned to #{issue.assignees.map(&:to_reference).to_sentence}"
end
create_note(noteable: issue, project: project, author: author, note: body)
NoteSummary.new(issue, project, author, body, action: 'assignee')
end
# Called when one or more labels on a Noteable are added and/or removed
......
......@@ -21,7 +21,6 @@ describe 'Issue Boards', feature: true, js: true do
Timecop.freeze
project.team << [user, :master]
project.team.add_developer(user2)
login_as(user)
......@@ -103,26 +102,6 @@ describe 'Issue Boards', feature: true, js: true do
expect(card).to have_selector('.avatar')
end
it 'adds multiple assignees' do
click_card(card)
page.within('.assignee') do
click_link 'Edit'
wait_for_ajax
page.within('.dropdown-menu-user') do
click_link user.name
click_link user2.name
end
expect(page).to have_content(user.name)
expect(page).to have_content(user2.name)
end
expect(card.all('.avatar').length).to eq(2)
end
it 'removes the assignee' do
card_two = first('.board').find('.card:nth-child(2)')
click_card(card_two)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment