Sha256: 2adb33a43990125a7c1c87edb738d8dbfb75c69198066d2b00e5e24b5e1e94c2
Contents?: true
Size: 840 Bytes
Versions: 2
Compression:
Stored size: 840 Bytes
Contents
# encoding: UTF-8 require 'vcr_setup' require 'spec_helper' require 'roo' require 'google_drive' describe TableImporter::Source do context 'when source is a google file' do before(:each) do VCR.use_cassette('google_authentication', :record => :new_episodes) do @source = TableImporter::Source.new({ :content => 'CLIENT_ID, ACCESS_TOKEN', :headers_present => true, :user_headers => nil, :type => "google", :column_separator => "", :record_separator => "", :compulsory_headers => { :email => true } }) end end it "gets the correct type" do VCR.use_cassette('google_authentication') do @source.get_type.should eql("google") end end after(:each) do @source = nil end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
table_importer-0.2.5 | spec/sources/google_spec.rb |
table_importer-0.2.4 | spec/sources/google_spec.rb |