Skip to content

Commit

Permalink
Add Civil disorder to the list of assessment questions
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyprivett committed Oct 1, 2024
1 parent b6078f9 commit ebf71d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/services/assessment_questions/importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Importer
ASSESSMENT_QUESTIONS = [
{ key: :violent, category: :risk, title: 'Violent' },
{ key: :escape, category: :risk, title: 'Escape' },
{ key: :civil_disorder, category: :risk, title: 'Civil disorder' },
{ key: :hold_separately, category: :risk, title: 'Must be held separately' },
{ key: :self_harm, category: :risk, title: 'Self harm' },
{ key: :concealed_items, category: :risk, title: 'Concealed items' },
Expand Down
4 changes: 2 additions & 2 deletions spec/services/assessment_questions/importer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

context 'with no existing records' do
it 'creates all the input items' do
expect { importer.call }.to change(AssessmentQuestion, :count).by(17)
expect { importer.call }.to change(AssessmentQuestion, :count).by(18)
end

it 'creates `Violent`' do
Expand All @@ -34,7 +34,7 @@
end

it 'creates only the missing item' do
expect { importer.call }.to change(AssessmentQuestion, :count).by(16)
expect { importer.call }.to change(AssessmentQuestion, :count).by(17)
end
end

Expand Down

0 comments on commit ebf71d0

Please sign in to comment.