Sha256: e321f93afccbb6300b69c4fe60cf3d181e47897d6f98ae0ca8fbb12d9d6938d2

Contents?: true

Size: 894 Bytes

Versions: 4

Compression:

Stored size: 894 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
#  file_hash              :string(255)
#  user_id                :integer
#  note                   :text
#  created_at             :datetime
#  updated_at             :datetime
#  inventory_file_name    :string(255)
#  inventory_content_type :string(255)
#  inventory_file_size    :integer
#  inventory_updated_at   :datetime
#

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enju_inventory-0.0.5 spec/models/inventory_file_spec.rb
enju_inventory-0.1.0 spec/models/inventory_file_spec.rb
enju_inventory-0.0.4 spec/models/inventory_file_spec.rb
enju_inventory-0.0.3 spec/models/inventory_file_spec.rb