Skip to content

Commit

Permalink
AP-5164: Change logic for APPLY_CASE_MEANS_REVIEW
Browse files Browse the repository at this point in the history
Extend to set manual review off when we try and autogrant
an SCA application
  • Loading branch information
colinbruce committed Aug 22, 2024
1 parent 3635d4c commit 886d3fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/ccms/attribute_value_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def not_zero?(value)
end

def bypass_manual_review_in_ccms?(_options)
!manual_case_review_required?
!manual_case_review_required? || legal_aid_application.auto_grant_special_children_act?
end

def manual_case_review_required?
Expand Down
10 changes: 10 additions & 0 deletions spec/services/ccms/requestors/case_add_requestor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,11 @@ module Requestors
block = XmlExtractor.call(request_xml, :proceeding_merits, "FAMILY_PROSPECTS_OF_SUCCESS")
expect(block).not_to be_present
end

it "sets the APPLY_CASE_MEANS_REVIEW value to false" do
block = XmlExtractor.call(request_xml, :global_merits, "APPLY_CASE_MEANS_REVIEW")
expect(block).to have_boolean_response true
end
end

context "when not auto-granting an SCA application" do
Expand Down Expand Up @@ -493,6 +498,11 @@ module Requestors
block = XmlExtractor.call(request_xml, :proceeding_merits, "FAMILY_PROSPECTS_OF_SUCCESS")
expect(block).not_to be_present
end

it "sets the APPLY_CASE_MEANS_REVIEW value to false" do
block = XmlExtractor.call(request_xml, :global_merits, "APPLY_CASE_MEANS_REVIEW")
expect(block).to have_boolean_response false
end
end
end
end
Expand Down

0 comments on commit 886d3fe

Please sign in to comment.