Sha256: 49f31c913efea7c1db68d354db9e80508bb40c6df0e7168c7d486e9d0b3dcb0a
Contents?: true
Size: 926 Bytes
Versions: 6
Compression:
Stored size: 926 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe InventoryFile do before(:each) do @file = InventoryFile.create :inventory => File.new("#{Rails.root.to_s}/../../examples/inventory_file_sample.tsv"), :user => FactoryGirl.create(:user) end it "should be imported" do @file.import.should be_true 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
6 entries across 6 versions & 1 rubygems