Sha256: 79930dabde4797066dd00225078623bdb8adefc7b202fea77f4b2090762895aa

Contents?: true

Size: 952 Bytes

Versions: 12

Compression:

Stored size: 952 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
    @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

12 entries across 12 versions & 1 rubygems

Version Path
enju_inventory-0.1.11.pre4 spec/models/inventory_file_spec.rb
enju_inventory-0.1.11.pre2 spec/models/inventory_file_spec.rb
enju_inventory-0.1.11.pre spec/models/inventory_file_spec.rb
enju_inventory-0.1.10 spec/models/inventory_file_spec.rb
enju_inventory-0.1.9 spec/models/inventory_file_spec.rb
enju_inventory-0.0.11 spec/models/inventory_file_spec.rb
enju_inventory-0.1.7 spec/models/inventory_file_spec.rb
enju_inventory-0.1.6 spec/models/inventory_file_spec.rb
enju_inventory-0.0.10 spec/models/inventory_file_spec.rb
enju_inventory-0.1.5 spec/models/inventory_file_spec.rb
enju_inventory-0.1.4 spec/models/inventory_file_spec.rb
enju_inventory-0.0.9 spec/models/inventory_file_spec.rb