Sha256: 5d41f028063ef10ca576e7b5e275a0d3672afb874a50e36ca875d316608d6d43
Contents?: true
Size: 977 Bytes
Versions: 1
Compression:
Stored size: 977 Bytes
Contents
require 'rails_helper' describe InventoryFile do 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.user = users(:admin) @file.save end it "should be imported" do expect(@file.import).to be_truthy end it "should export results" do expect(@file.export).to be_truthy end end # == Schema Information # # Table name: inventory_files # # id :bigint not null, primary key # user_id :bigint # note :text # created_at :datetime not null # updated_at :datetime not null # inventory_file_name :string # inventory_content_type :string # inventory_file_size :integer # inventory_updated_at :datetime # inventory_fingerprint :string # shelf_id :bigint not null #
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_inventory-0.4.0.rc.1 | spec/models/inventory_file_spec.rb |