Sha256: 92d806797618bbcb9b515d617574af0df954e11a663715ca7c1c01ea85de0215

Contents?: true

Size: 518 Bytes

Versions: 4

Compression:

Stored size: 518 Bytes

Contents

require "#{File.dirname(__FILE__)}/test_helper"

describe EnrichmentDb::Datum do
  it 'should get correct ato record' do
  	condition = "region_id = '3000'"
    puts EnrichmentDb.const_get('Ato')::Datum.by_lambda('ato', 'taxable_incomes', condition)
    result = EnrichmentDb::Datum.by_lambda('ato', 'taxable_incomes', condition)
    region = result.first
    assert_equal '3000', region['region_id']
    assert_equal 'Postcodes', region['region_type']
    assert_equal '51948.229', region['taxable_income']
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enrichment_db-0.1.15 test/datum_test.rb
enrichment_db-0.1.14 test/datum_test.rb
enrichment_db-0.1.13 test/datum_test.rb
enrichment_db-0.1.12 test/datum_test.rb