From a50bbbaf18a7ff55f5b32e7d08c5e9f09f37c085 Mon Sep 17 00:00:00 2001 From: Andrew Sparkes Date: Wed, 8 Nov 2023 15:51:26 +0000 Subject: [PATCH] fix purpose names in report --- .../pbmc_bank_tubes_content_report.csv.erb | 2 +- ...bmc_bank_tubes_content_report.csv.erb_spec.rb | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/views/exports/pbmc_bank_tubes_content_report.csv.erb b/app/views/exports/pbmc_bank_tubes_content_report.csv.erb index a4d20468f..99e6cbcb8 100644 --- a/app/views/exports/pbmc_bank_tubes_content_report.csv.erb +++ b/app/views/exports/pbmc_bank_tubes_content_report.csv.erb @@ -58,7 +58,7 @@ # donor_id is sourced from the sample metadata provided by Sequencescape donor_id = sample_metadata.respond_to?(:donor_id) ? sample_metadata.donor_id : nil child_tube_purpose = child_tube_v2.purpose.name - destination = ((child_tube_purpose == 'LRC Blood Seq') ? 'Sequencing' : 'Contingency') + destination = ((child_tube_purpose == 'LRC Bank Seq') ? 'Sequencing' : 'Contingency') volume = 135 rows_array << [ diff --git a/spec/views/exports/pbmc_bank_tubes_content_report.csv.erb_spec.rb b/spec/views/exports/pbmc_bank_tubes_content_report.csv.erb_spec.rb index 5a0fb180b..71a91567a 100644 --- a/spec/views/exports/pbmc_bank_tubes_content_report.csv.erb_spec.rb +++ b/spec/views/exports/pbmc_bank_tubes_content_report.csv.erb_spec.rb @@ -107,14 +107,14 @@ let(:dest_tube6_uuid) { SecureRandom.uuid } # destination purposes - let(:lrc_blood_seq) { create(:v2_purpose, name: 'LRC Blood Seq') } - let(:lrc_blood_spare) { create(:v2_purpose, name: 'LRC Blood Spare') } + let(:lrc_bank_seq) { create(:v2_purpose, name: 'LRC Bank Seq') } + let(:lrc_bank_spare) { create(:v2_purpose, name: 'LRC Bank Spare') } # destination tubes let(:dest_tube1) do create( :v2_tube_with_metadata, - purpose: lrc_blood_seq, + purpose: lrc_bank_seq, uuid: dest_tube1_uuid, barcode_prefix: 'FX', barcode_number: 4, @@ -126,7 +126,7 @@ let(:dest_tube2) do create( :v2_tube_with_metadata, - purpose: lrc_blood_spare, + purpose: lrc_bank_spare, uuid: dest_tube2_uuid, barcode_prefix: 'FX', barcode_number: 5, @@ -138,7 +138,7 @@ let(:dest_tube3) do create( :v2_tube_with_metadata, - purpose: lrc_blood_spare, + purpose: lrc_bank_spare, uuid: dest_tube3_uuid, barcode_prefix: 'FX', barcode_number: 6, @@ -150,7 +150,7 @@ let(:dest_tube4) do create( :v2_tube_with_metadata, - purpose: lrc_blood_seq, + purpose: lrc_bank_seq, uuid: dest_tube4_uuid, barcode_prefix: 'FX', barcode_number: 7, @@ -162,7 +162,7 @@ let(:dest_tube5) do create( :v2_tube_with_metadata, - purpose: lrc_blood_spare, + purpose: lrc_bank_spare, uuid: dest_tube5_uuid, barcode_prefix: 'FX', barcode_number: 8, @@ -174,7 +174,7 @@ let(:dest_tube6) do create( :v2_tube_with_metadata, - purpose: lrc_blood_spare, + purpose: lrc_bank_spare, uuid: dest_tube6_uuid, barcode_prefix: 'FX', barcode_number: 9,