test/census/datum_test.rb in enrichment_db-0.1.12 vs test/census/datum_test.rb in enrichment_db-0.1.13

- old
+ new

@@ -5,6 +5,11 @@ 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