Sha256: 9078e303fc4b0119b5f32ccd756072f33499d424f2bca1e3735e328fc557a352

Contents?: true

Size: 955 Bytes

Versions: 5

Compression:

Stored size: 955 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

5 entries across 5 versions & 1 rubygems

Version Path
enju_inventory-0.1.11.pre9 spec/models/inventory_file_spec.rb
enju_inventory-0.1.11.pre8 spec/models/inventory_file_spec.rb
enju_inventory-0.1.11.pre7 spec/models/inventory_file_spec.rb
enju_inventory-0.1.11.pre6 spec/models/inventory_file_spec.rb
enju_inventory-0.1.11.pre5 spec/models/inventory_file_spec.rb