Sha256: 0b11d05107aa7d60f87a570d46a62b5460796bbc116ef99e4d347df807dae34e
Contents?: true
Size: 931 Bytes
Versions: 4
Compression:
Stored size: 931 Bytes
Contents
require 'spec_helper' require 'flydata-core/query_job/redshift' module FlydataCore::QueryJob describe Redshift do describe '.target_table_names' do subject { described_class.target_table_names(flydata_table_names) } context 'with a single table name' do let(:flydata_table_names) { "my_table" } it { is_expected.to eq [ flydata_table_names ] } end context 'with multiples table names' do let(:flydata_table_names) { %w(my_table1 my_table2) } it { is_expected.to eq flydata_table_names } end context 'with a mixed case table name' do let(:flydata_table_names) { "MyTable" } it { is_expected.to eq [ flydata_table_names.downcase, flydata_table_names ] } end context 'with table names including mixed case one' do let(:flydata_table_names) { %w(MyTable my_table2) } it { is_expected.to eq %w(mytable MyTable my_table2) } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems