Sha256: c06cd3b4aedc7914fa9587e3ee087bc1f879a61447a0c766742ae8d66938bffd

Contents?: true

Size: 425 Bytes

Versions: 1

Compression:

Stored size: 425 Bytes

Contents

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

describe EnrichmentDb::Datum do
  it 'should get correct ato record' do
  	condition = "region_id = '3000'"
    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

1 entries across 1 versions & 1 rubygems

Version Path
enrichment_db-0.1.11 test/datum_test.rb