Sha256: 16409e0dbae914fad990528839db11afb16cd7f349e2ccd1a2dac5156d7afc26

Contents?: true

Size: 697 Bytes

Versions: 11

Compression:

Stored size: 697 Bytes

Contents

# Copyright:: (c) Autotelik Media Ltd 2011
# Author ::   Tom Statter
# Date ::     Aug 2011
# License::   MIT
#
# Details::   Specs for Excel aspect of Active Record Loader
#
require File.dirname(__FILE__) + '/spec_helper'

require 'erb'
require 'excel_loader'

describe 'CSV Loader' do

  before(:all) do
    
    # load our test model definitions - Project etc
    require File.join($DataShiftFixturePath, 'test_model_defs')  
       
    db_connect( 'test_file' )    # , test_memory, test_mysql
    migrate_up
    @klazz = Project
  end
  
  before(:each) do
    MethodDictionary.clear
    MethodDictionary.find_operators( @klazz )
    MethodDictionary.find_operators( @assoc_klazz )
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
datashift-0.9.0 spec/csv_loader_spec.rb
datashift-0.8.0 spec/csv_loader_spec.rb
datashift-0.7.0 spec/csv_loader_spec.rb
datashift-0.6.1 spec/csv_loader_spec.rb
datashift-0.6.0 spec/csv_loader_spec.rb
datashift-0.5.0 spec/csv_loader_spec.rb
datashift-0.4.3 spec/csv_loader_spec.rb
datashift-0.4.2 spec/csv_loader_spec.rb
datashift-0.4.0 spec/csv_loader_spec.rb
datashift-0.2.2 spec/csv_loader_spec.rb
datashift-0.1.0 spec/csv_loader_spec.rb