Skip to content

Commit

Permalink
Revert "removed assign_quiz_dynamically test"
Browse files Browse the repository at this point in the history
This reverts commit 89b42c4.
  • Loading branch information
Nidhay Rakesh Pancholi committed Apr 24, 2024
1 parent cde8bbe commit e4f4f23
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/controllers/review_mapping_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,16 @@
expect(response).to redirect_to('/student_quizzes?id=1')
end
end

context 'when an error occurs during the assignment process' do
it 'displays an alert message' do
allow_any_instance_of(ReviewMappingController).to receive(:find_assignment).and_raise(StandardError)

get :assign_quiz_dynamically, params: { assignment_id: 1, reviewer_id: 1, questionnaire_id: 1, participant_id: 1 }

expect(flash[:alert]).to be_present
end
end
end

describe '#add_metareviewer' do
Expand Down

0 comments on commit e4f4f23

Please sign in to comment.