Sha256: 9355907724015cbe1d39527a546b9bd79c1a061f78714f020d14bfee39b8bfa0

Contents?: true

Size: 657 Bytes

Versions: 1

Compression:

Stored size: 657 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + "../../test_helper")

class SsnHighGroupCodeLoaderTest < ActiveSupport::TestCase

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ssn_validator-1.1.0 test/models/ssn_high_group_code_loader_test.rb