Sha256: ad1c2cdbd2fa72af0a02abd7414a5928e3066ec6749858750a5665a67104a694

Contents?: true

Size: 685 Bytes

Versions: 1

Compression:

Stored size: 685 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
    MethodMapper.clear
    MethodMapper.find_operators( @klazz )
    MethodMapper.find_operators( @assoc_klazz )
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datashift-0.0.2 spec/csv_loader_spec.rb