Skip to content

Commit

Permalink
updated expected error to be more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
hemmatio committed Nov 22, 2024
1 parent 625b64d commit 55f5784
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/controllers/peer_reviews_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55f5784

Please sign in to comment.