Sha256: 67ec6865a48812a28d805421b2a4199c9af1bd9ca26e02fdd039bc5a912f4049
Contents?: true
Size: 580 Bytes
Versions: 3
Compression:
Stored size: 580 Bytes
Contents
require "#{File.dirname(__FILE__)}/../test_helper" describe EnrichmentDb::Census::Datum do it 'should retrieve correct record' do result = EnrichmentDb::Census::Datum.by_id('selected_medians_and_averages', '3000') assert_equal 3000, result['region_id'] assert_equal 'Postcodes', result['region_type'] assert_equal 26, result['median_age_of_persons'] end it 'should find postcode in census data but not in our database so return nil' do result = EnrichmentDb::Census::Datum.by_id('selected_medians_and_averages', '6079') assert_nil result end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enrichment_db-0.1.15 | test/census/datum_test.rb |
enrichment_db-0.1.14 | test/census/datum_test.rb |
enrichment_db-0.1.13 | test/census/datum_test.rb |