Sha256: 213ab9dc87a68283fdb14ee61964fc339c8d27c00733517cfd3718f2fb8afd3a

Contents?: true

Size: 379 Bytes

Versions: 8

Compression:

Stored size: 379 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
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enrichment_db-0.1.12 test/census/datum_test.rb
enrichment_db-0.1.11 test/census/datum_test.rb
enrichment_db-0.1.10 test/census/datum_test.rb
enrichment_db-0.1.9 test/census/datum_test.rb
enrichment_db-0.1.8 test/census/datum_test.rb
enrichment_db-0.1.7 test/census/datum_test.rb
enrichment_db-0.1.6 test/census/datum_test.rb
enrichment_db-0.1.5 test/census/datum_test.rb