Browse Source

Downcase case log status in tasklist

pull/91/head
baarkerlounger 3 years ago
parent
commit
06ac7b8c35
  1. 2
      app/views/case_logs/edit.html.erb
  2. 2
      spec/features/case_log_spec.rb

2
app/views/case_logs/edit.html.erb

@ -5,7 +5,7 @@
<%= @case_log.id %></h1> <%= @case_log.id %></h1>
<h2 class="govuk-heading-s govuk-!-margin-bottom-2">This submission is <h2 class="govuk-heading-s govuk-!-margin-bottom-2">This submission is
<%= @case_log.status.to_s.humanize %></h2> <%= @case_log.status.to_s.humanize.downcase %></h2>
<p class="govuk-body govuk-!-margin-bottom-7">You've completed <%= get_subsections_count(@form, @case_log, :completed) %> of <%= get_subsections_count(@form, @case_log, :all) %> sections.</p> <p class="govuk-body govuk-!-margin-bottom-7">You've completed <%= get_subsections_count(@form, @case_log, :completed) %> of <%= get_subsections_count(@form, @case_log, :all) %> sections.</p>
<p class="govuk-body govuk-!-margin-bottom-7"> <p class="govuk-body govuk-!-margin-bottom-7">
<% next_incomplete_section=get_next_incomplete_section(@form, @case_log) %> <% next_incomplete_section=get_next_incomplete_section(@form, @case_log) %>

2
spec/features/case_log_spec.rb

@ -43,7 +43,7 @@ RSpec.describe "Test Features" do
it "displays a tasklist header" do it "displays a tasklist header" do
visit("/case_logs/#{id}") visit("/case_logs/#{id}")
expect(page).to have_content("Tasklist for log #{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 end
it "displays a section status" do it "displays a section status" do

Loading…
Cancel
Save