From d061ae38f918a15b0a9a268bdad844094717fc71 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Thu, 31 Mar 2022 11:58:05 +0100 Subject: [PATCH] Link text --- app/views/case_logs/_log_list.html.erb | 5 ++++- spec/requests/case_logs_controller_spec.rb | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/views/case_logs/_log_list.html.erb b/app/views/case_logs/_log_list.html.erb index 3029e5e9c..dd78c7c00 100644 --- a/app/views/case_logs/_log_list.html.erb +++ b/app/views/case_logs/_log_list.html.erb @@ -1,6 +1,9 @@
- <%= pagy.count %> total <%= title.downcase %> + + <%= pagy.count %> total <%= title.downcase %> + + Download (CSV)
diff --git a/spec/requests/case_logs_controller_spec.rb b/spec/requests/case_logs_controller_spec.rb index 6c93d86a5..2799c1ef1 100644 --- a/spec/requests/case_logs_controller_spec.rb +++ b/spec/requests/case_logs_controller_spec.rb @@ -207,6 +207,10 @@ RSpec.describe CaseLogsController, type: :request do end end + it "shows the download csv link" do + expect(page).to have_link("Download (CSV)") + end + context "when there are more than 20 logs" do before do FactoryBot.create_list(:case_log, 25, owning_organisation: organisation, managing_organisation: organisation)