diff --git a/lib/labels.rb b/lib/labels.rb index c6eac45..790d8ed 100644 --- a/lib/labels.rb +++ b/lib/labels.rb @@ -21,7 +21,7 @@ def body barcode_text: consumable.barcode, reagent_name: consumable.batch.consumable_type.name, batch_no: consumable.batch.number, - date: "Use by: #{consumable.batch.expiry_date}", + date: "Use by:#{consumable.batch.expiry_date}", barcode: consumable.barcode, volume: consumable.display_volume, storage_condition: consumable.batch.consumable_type.storage_condition, diff --git a/spec/lib/labels_spec.rb b/spec/lib/labels_spec.rb index cc7efc7..fb92894 100644 --- a/spec/lib/labels_spec.rb +++ b/spec/lib/labels_spec.rb @@ -18,7 +18,7 @@ expect(first_label[:label_1][:barcode_text]).to eql(first_consumable.barcode) expect(first_label[:label_1][:reagent_name]).to eql(@batch.consumable_type.name) expect(first_label[:label_1][:batch_no]).to eql(@batch.number) - expect(first_label[:label_1][:date]).to eql("Use by: #{@batch.expiry_date.to_date}") + expect(first_label[:label_1][:date]).to eql("Use by:#{@batch.expiry_date.to_date}") expect(first_label[:label_1][:barcode]).to eql(first_consumable.barcode) expect(first_label[:label_1][:volume]).to eq("1.1mL") expect(first_label[:label_1][:storage_condition]).to eql('LN2')