Sha256: 2163696720894d24e4605feb8a572d8f0f0a2ee6c75ca5b7efa85b2f67acc28e
Contents?: true
Size: 961 Bytes
Versions: 7
Compression:
Stored size: 961 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe InventoryFile do fixtures :users before(:each) do @file = InventoryFile.new :inventory => File.new("#{Rails.root.to_s}/../../examples/inventory_file_sample.tsv") @file.user = users(:admin) @file.save end it "should be imported" do expect(@file.import).to be_truthy end end # == Schema Information # # Table name: inventory_files # # id :integer not null, primary key # filename :string(255) # content_type :string(255) # size :integer # user_id :integer # note :text # created_at :datetime not null # updated_at :datetime not null # inventory_file_name :string(255) # inventory_content_type :string(255) # inventory_file_size :integer # inventory_updated_at :datetime # inventory_fingerprint :string(255) #
Version data entries
7 entries across 7 versions & 1 rubygems