Sha256: 0c95eb08f68a06a4cb3317d34f50af266e2c2367c83bb6aa99a4a6a2ee6dba53

Contents?: true

Size: 748 Bytes

Versions: 2

Compression:

Stored size: 748 Bytes

Contents

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

require 'erb'

module DataShift
  describe 'LoaderBase' do
    let(:loader) { LoaderBase.new }

    it 'should be able to create an empty loader with basic load object' do
      expect(loader.load_object).to be_a DataShift::LoadObject
      expect(loader.file_name).to eq ''
      expect(loader.doc_context).to be_a(DocContext)
      expect(loader.binder).to be_a(Binder)
    end

    it 'should be able to set the file_name ot load' do
      loader.file_name = 'Test.csv'
      expect(loader.file_name).to eq 'Test.csv'
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datashift-0.40.1 spec/loaders/loader_base_spec.rb
datashift-0.40.0 spec/loaders/loader_base_spec.rb