Skip to content

Commit

Permalink
Changed human_barcode to machine_barcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
stevieing committed Aug 7, 2020
1 parent 6c8e47e commit 5557cb1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/label_printer/label_printer/label/base_tube.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def round_label_bottom_line(tube)
end

def barcode(tube)
tube.human_barcode
tube.machine_barcode
end

def tubes
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/label_printer/asset_labels_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
bottom_line: date,
round_label_top_line: asset.prefix,
round_label_bottom_line: asset.barcode_number,
barcode: asset.human_barcode } }
barcode: asset.machine_barcode } }
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/lib/label_printer/batch_multiplex_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def setup
bottom_line: (Date.today.strftime('%e-%^b-%Y')).to_s,
round_label_top_line: prefix,
round_label_bottom_line: barcode1,
barcode: tube1.human_barcode }
barcode: tube1.machine_barcode }
end

test 'should return correct tubes' do
Expand Down
2 changes: 1 addition & 1 deletion test/lib/label_printer/plate_to_tube_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def setup
bottom_line: (Date.today.strftime('%e-%^b-%Y')).to_s,
round_label_top_line: prefix,
round_label_bottom_line: barcode1,
barcode: tube1.human_barcode }
barcode: tube1.machine_barcode }
end

test 'should have tubes' do
Expand Down
2 changes: 1 addition & 1 deletion test/lib/label_printer/sample_manifest_multiplex_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def setup
bottom_line: (Date.today.strftime('%e-%^b-%Y')).to_s,
round_label_top_line: prefix,
round_label_bottom_line: barcode1,
barcode: tube1.human_barcode }
barcode: tube1.machine_barcode }
end

test 'should return correct tubes' do
Expand Down
2 changes: 1 addition & 1 deletion test/lib/label_printer/sample_manifest_tube_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def setup
bottom_line: (Date.today.strftime('%e-%^b-%Y')).to_s,
round_label_top_line: prefix,
round_label_bottom_line: barcode1,
barcode: tube1.human_barcode }
barcode: tube1.machine_barcode }
end

test 'should return the right list of tubes' do
Expand Down

0 comments on commit 5557cb1

Please sign in to comment.