diff --git a/spec/models/inventory_file_spec.rb b/spec/models/inventory_file_spec.rb index 6caa716..89f7d29 100644 --- a/spec/models/inventory_file_spec.rb +++ b/spec/models/inventory_file_spec.rb @@ -4,7 +4,7 @@ fixtures :users before(:each) do - @file = InventoryFile.new inventory: File.new("#{Rails.root.to_s}/../../examples/inventory_file_sample.tsv", shelf: Shelf.find_by(name: 'first_shelf')) + @file = InventoryFile.new(inventory: File.new("#{Rails.root.to_s}/../../examples/inventory_file_sample.tsv"), shelf: Shelf.find_by(name: 'first_shelf')) @file.user = users(:admin) @file.save end