Sha256: 6d09ddc1083c5821afde5a58e6be376e9898d5bcae381b1635e3a15e8abbae4f

Contents?: true

Size: 484 Bytes

Versions: 6

Compression:

Stored size: 484 Bytes

Contents

RSpec.describe Unidom::Certificate::China::IdentificationNumberValidator, type: :validator do

  valid_values = %w{
      231024198506186916
      231024198506188110
      231024198506185470
      231024198506182851
      231024198506187193
    }
  invalid_values = %w{
      231024198506186917
      231024198506188111
      231024198506185471
      231024198506182852
      231024198506187194
    }

  it_behaves_like 'ActiveModel::EachValidator', valid_values, invalid_values

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
unidom-certificate-china-2.0 lib/rspec/validators/unidom/certificate/china/identification_number_validator_spec.rb
unidom-certificate-china-1.5.6 lib/rspec/validators/unidom/certificate/china/identification_number_validator_spec.rb
unidom-certificate-china-1.5.5 lib/rspec/validators/unidom/certificate/china/identification_number_validator_spec.rb
unidom-certificate-china-1.5.4 lib/rspec/validators/unidom/certificate/china/identification_number_validator_spec.rb
unidom-certificate-china-1.5.3 lib/rspec/validators/unidom/certificate/china/identification_number_validator_spec.rb
unidom-certificate-china-1.5.2 lib/rspec/validators/unidom/certificate/china/identification_number_validator_spec.rb