Skip to content

Commit

Permalink
Added test for a contingency-only valid scanned layout
Browse files Browse the repository at this point in the history
  • Loading branch information
yoldas committed Oct 29, 2023
1 parent c68f0bb commit 0ae1fbe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/models/robots/plate_to_tube_racks_robot_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
Expand Down

0 comments on commit 0ae1fbe

Please sign in to comment.