diff --git a/spec/controllers/peer_reviews_controller_spec.rb b/spec/controllers/peer_reviews_controller_spec.rb index de93c210cd..baf64c7448 100644 --- a/spec/controllers/peer_reviews_controller_spec.rb +++ b/spec/controllers/peer_reviews_controller_spec.rb @@ -484,7 +484,8 @@ it 'flashes the correct message' do flashed_error = flash[:error].map { |f| extract_text f }[0] - expect(flashed_error).to include('Successfully unassigned 2 peer reviewer(s)') + expect(flashed_error).to include('Successfully unassigned 2 peer reviewer(s), but could not unassign the + following due to existing marks or annotations: ') end it 'deletes the correct number of peer reviews' do