Skip to content

Commit

Permalink
Modifiy Use By date to fit on the new label
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Smith committed May 26, 2016
1 parent c7aab54 commit e98bc21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/labels.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/labels_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit e98bc21

Please sign in to comment.