From 0ae1fbe0bc81b82e1df2e00e028cd20ef42e5a75 Mon Sep 17 00:00:00 2001 From: yoldas Date: Sun, 29 Oct 2023 15:17:34 +0000 Subject: [PATCH] Added test for a contingency-only valid scanned layout --- spec/models/robots/plate_to_tube_racks_robot_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/models/robots/plate_to_tube_racks_robot_spec.rb b/spec/models/robots/plate_to_tube_racks_robot_spec.rb index 9865c8bda..aca9424ad 100644 --- a/spec/models/robots/plate_to_tube_racks_robot_spec.rb +++ b/spec/models/robots/plate_to_tube_racks_robot_spec.rb @@ -206,7 +206,8 @@ end context 'with two destination purposes' do - # Parent plate has two child tube-racks. We validate parent bed and two child beds. + # Parent plate has two child tube-racks. We validate parent bed (bed1) + # and two child beds (bed2 and bed3). context 'with a valid scanned layout' do let(:scanned_layout) do { @@ -221,18 +222,17 @@ end context 'with one destination purpose' do - # Parent plate has only one child tube-rack. We validate parent bed and one child bed. + # Parent plate has only one child tube-rack. We validate parent bed + # (bed1) and one child bed (bed3). # wells let(:well1) { create(:v2_well, location: 'A1', downstream_tubes: [tube4]) } let(:well2) { create(:v2_well, location: 'B1', downstream_tubes: [tube5]) } let(:well3) { create(:v2_well, location: 'C1', downstream_tubes: [tube6]) } context 'with a valid scanned layout' do - let(:scanned_layout) { { bed1_barcode => [plate.human_barcode], bed2_barcode => [tube_rack1_barcode] } } + let(:scanned_layout) { { bed1_barcode => [plate.human_barcode], bed3_barcode => [tube_rack2_barcode] } } - it 'test' do - is_expected.to be_valid - end + it { is_expected.to be_valid } end end end