Sha256: fad145e34cbe62858f62f0dcf1d8dfe5611ef2e27fcccab8f574957d52db07b9
Contents?: true
Size: 879 Bytes
Versions: 11
Compression:
Stored size: 879 Bytes
Contents
require "#{File.dirname(__FILE__)}/test_helper" describe EnrichmentDb do it 'should list all table names for geo schema' do result = EnrichmentDb.table_names('geo') geo_table_count = 7 assert_equal geo_table_count, result.size end it 'should list all table names for census schema' do result = EnrichmentDb.table_names('censis') census_table_count = 33 assert_equal census_table_count, result.size end it 'should list table columns from geo.sa1 table' do result = EnrichmentDb.table_columns('sa1s', 'geo') sa1s_column_count = 8 assert_equal sa1s_column_count, result.size end it 'should list table columns from censis.selected_medians_and_averages table' do result = EnrichmentDb.table_columns('selected_medians_and_averages', 'censis') sa1s_column_count = 8 assert_equal sa1s_column_count, result.size end end
Version data entries
11 entries across 11 versions & 1 rubygems