Sha256: 2c3b6e6630ec818ffb64a1c1dea0b7a7a0dacebcc972d5e846593da932b1e17c

Contents?: true

Size: 686 Bytes

Versions: 2

Compression:

Stored size: 686 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper.rb'

class TestSsnHighGroupCode < Test::Unit::TestCase

  def setup
    setup_high_group_codes_table
  end
  
  def test_should_load_table_with_current_file
    assert_equal(0,SsnHighGroupCode.count)
    SsnHighGroupCode.load_current_high_group_codes_file
    assert SsnHighGroupCode.count > 0
  end

  def test_should_not_load_table_if_as_of_already_in_table
    SsnHighGroupCode.load_current_high_group_codes_file
    assert SsnHighGroupCode.count > 0
    record_count = SsnHighGroupCode.count
    SsnHighGroupCode.load_current_high_group_codes_file
    assert_equal(record_count, SsnHighGroupCode.count)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kevintyll-ssn_validator-0.1.1 test/test_ssn_high_group_code.rb
kevintyll-ssn_validator-0.1.2 test/test_ssn_high_group_code.rb