Skip to content

Commit

Permalink
Merge branch 'filter_modal' of github.com:khushiagl/Markus into filte…
Browse files Browse the repository at this point in the history
…r_modal
  • Loading branch information
khushiagl committed Jul 18, 2023
2 parents fafb053 + 16dda81 commit a376f9f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions spec/controllers/results_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,6 @@ def self.test_unauthorized(route_name)
expect(response.parsed_body['next_result']['id']).not_to eq(grouping2.current_result.id)
end
end
context 'when a grouping does not have a submission or annotations' do
it 'should avoid returning this submission' do
get :next_grouping, params: { course_id: course.id, grouping_id: grouping3.id,
id: grouping3.current_result.id,
direction: 1, filterData: { annotationValue: 'aa_' } }
expect(response.parsed_body['next_grouping']).to be_nil
expect(response.parsed_body['next_result']).to be_nil
end
end
context 'when annotationValue contains special characters (in the context of a like clause)' do
it 'should sanitize the string and return the next relevant result' do
get :next_grouping, params: { course_id: course.id, grouping_id: grouping1.id,
Expand Down Expand Up @@ -183,7 +174,7 @@ def self.test_unauthorized(route_name)
direction: 1, filterData: { markingStateValue: 'Remark Requested' } }
expect(response.parsed_body['next_grouping']['id']).not_to eq(grouping3.id)
end
it 'should not respond with a grouping that whose current result is not a remark result' do
it 'should not respond with a grouping whose current result is not a remark result' do
get :next_grouping, params: { course_id: course.id, grouping_id: grouping1.id,
id: grouping1.current_result.id,
direction: 1, filterData: { markingStateValue: 'Remark Requested' } }
Expand Down

0 comments on commit a376f9f

Please sign in to comment.