From 06ac7b8c35a07f62b9dac0a2afd2b2b610593d97 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Mon, 15 Nov 2021 14:23:55 +0000 Subject: [PATCH] Downcase case log status in tasklist --- app/views/case_logs/edit.html.erb | 2 +- spec/features/case_log_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/case_logs/edit.html.erb b/app/views/case_logs/edit.html.erb index 349cc6914..25668b2ac 100644 --- a/app/views/case_logs/edit.html.erb +++ b/app/views/case_logs/edit.html.erb @@ -5,7 +5,7 @@ <%= @case_log.id %>

This submission is - <%= @case_log.status.to_s.humanize %>

+ <%= @case_log.status.to_s.humanize.downcase %>

You've completed <%= get_subsections_count(@form, @case_log, :completed) %> of <%= get_subsections_count(@form, @case_log, :all) %> sections.

<% next_incomplete_section=get_next_incomplete_section(@form, @case_log) %> diff --git a/spec/features/case_log_spec.rb b/spec/features/case_log_spec.rb index 5552b0c85..a616b7baf 100644 --- a/spec/features/case_log_spec.rb +++ b/spec/features/case_log_spec.rb @@ -43,7 +43,7 @@ RSpec.describe "Test Features" do it "displays a tasklist header" do visit("/case_logs/#{id}") expect(page).to have_content("Tasklist for log #{id}") - expect(page).to have_content("This submission is #{status.humanize}") + expect(page).to have_content("This submission is #{status.humanize.downcase}") end it "displays a section status" do