File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -92,12 +92,12 @@ def successful_contacts_this_week_before(date)
9292 def transition_aged_youth
9393 text = object . in_transition_age? ? "Yes #{ CasaCase ::TRANSITION_AGE_YOUTH_ICON } " : "No #{ CasaCase ::NON_TRANSITION_AGE_YOUTH_ICON } "
9494 if object . in_transition_age?
95- badge_html = h . render ( partial : ' shared/emancipation_link' , locals : { casa_case : object } )
95+ badge_html = h . render ( partial : " shared/emancipation_link" , locals : { casa_case : object } )
9696 h . safe_join ( [ text , " " , badge_html ] )
9797 else
9898 text
9999 end
100- end
100+ end
101101
102102 def transition_aged_youth_icon
103103 object . in_transition_age? ? CasaCase ::TRANSITION_AGE_YOUTH_ICON : CasaCase ::NON_TRANSITION_AGE_YOUTH_ICON
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ $(() => { // JQuery's callback for the DOM loading
7272 return statusArray . includes ( status ) &&
7373 assignedToVolunteerArray . includes ( assignedToVolunteer ) &&
7474 assignedToMoreThanOneVolunteerArray . includes ( assignedToMoreThanOneVolunteer ) &&
75- assignedToTransitionYouthArray . some ( filterValue =>
75+ assignedToTransitionYouthArray . some ( filterValue =>
7676 assignedToTransitionYouth . toLowerCase ( ) . includes ( filterValue . toLowerCase ( ) . replace ( / [ ^ a - z A - Z ] / g, '' ) )
7777 ) &&
7878 caseNumberPrefixArray . includes ( caseNumberPrefix )
Original file line number Diff line number Diff line change 44 <%= render BadgeComponent.new(text: casa_case.decorate.emancipation_checklist_count,
55 type: :light,
66 margin: false) %>
7- <% end %>
7+ <% end %>
Original file line number Diff line number Diff line change 6363 end
6464
6565 it "returns transition age youth status with icon if over 14 years old" do
66- casa_case = build ( :casa_case , birth_month_year_youth : CasaCase ::TRANSITION_AGE . years . ago )
66+ casa_case = build_stubbed ( :casa_case , birth_month_year_youth : CasaCase ::TRANSITION_AGE . years . ago )
6767 expect ( casa_case . decorate . transition_aged_youth )
68- . to eq "Yes #{ CasaCase ::TRANSITION_AGE_YOUTH_ICON } "
68+ . to include "Yes #{ CasaCase ::TRANSITION_AGE_YOUTH_ICON } "
69+ expect ( casa_case . decorate . transition_aged_youth ) . to include "Emancipation"
6970 end
7071
7172 it "returns non-transition age youth status with icon if not over 14 years old" do
You can’t perform that action at this time.
0 commit comments