Browse Source

Set mime type in link markup

pull/441/head
baarkerlounger 3 years ago
parent
commit
340a51384e
  1. 2
      app/views/case_logs/_log_list.html.erb
  2. 2
      spec/requests/case_logs_controller_spec.rb

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

@ -3,7 +3,7 @@
<span class="govuk-!-margin-right-4"> <span class="govuk-!-margin-right-4">
<strong><%= pagy.count %></strong> total <%= title.downcase %> <strong><%= pagy.count %></strong> total <%= title.downcase %>
</span> </span>
<a class="govuk-link" download href="/logs.csv">Download (CSV)</a> <a class="govuk-link" download href="/logs.csv" type="text/csv">Download (CSV)</a>
</figcaption> </figcaption>
<section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>"> <section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>">
<table class="govuk-table"> <table class="govuk-table">

2
spec/requests/case_logs_controller_spec.rb

@ -433,7 +433,7 @@ RSpec.describe CaseLogsController, type: :request do
it "downloads answer labels rather than values" do it "downloads answer labels rather than values" do
csv = CSV.parse(response.body) csv = CSV.parse(response.body)
expect(csv.second[10]).to eq("Full-time - 30 hours or more") expect(csv.second[10]).to eq("Full-time 30 hours or more")
end end
end end

Loading…
Cancel
Save