unidom-certificate-china 1.5.3 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b8872085abe278128286948eba3f331ecd586e2
4
- data.tar.gz: ba4e4654f0f20911a6d932c4476147a8ce15c312
3
+ metadata.gz: 725c46b96ea42b6d13f00b4b66bd15b7c4942ee6
4
+ data.tar.gz: 7053d137d299631018ac28d36cb7276d7c494b39
5
5
  SHA512:
6
- metadata.gz: cddbaecb2ccd4f93b2da80758fc8310167bf011b7ae1cf811ee94745fe595e3a52145d65dfb6a2a2ca7b3c1e5deeb4b924f27e0a98a851143c9d983463bb3eb9
7
- data.tar.gz: baa1c2bd41b917302c8fd5cc8ae923a11c72fc24bd791c6891398e8f7f5b83b1100e32c0b65d6c84c286f8ceb0c05f018191bab2aabf0bfb67d5268e8d436535
6
+ metadata.gz: a795e395c628bf6df7b053c0ed093592949c8a967be6efb28a98e2f27a7cb1a0d33bd04ed8eaa35715ebefe34453e0d61db47451e23973b27415d76e7a016f5b
7
+ data.tar.gz: d38ef8cbe0d3e61453f4b2be34f78076ec27aa6d526a0e4ebe1dde9ca52e9275b61e8ab34593bcdcfa1a62ac282a939cfc0f1f8d19ddde95707597ff77897552
@@ -58,6 +58,9 @@ describe Unidom::Certificate::China::BusinessLicense, type: :model do
58
58
  { unified_social_credit_identifier: '1'*(unified_social_credit_identifier_max_length+1) } => 1,
59
59
  { unified_social_credit_identifier: 'A'*(unified_social_credit_identifier_max_length+1) } => 1
60
60
 
61
+ it_behaves_like 'validates text', model_attributes, :name, length: 2..described_class.columns_hash['name'].limit
62
+ it_behaves_like 'validates text', model_attributes, :address, length: 2..described_class.columns_hash['address'].limit
63
+
61
64
  end
62
65
 
63
66
  end
@@ -41,6 +41,9 @@ describe Unidom::Certificate::China::IdentityCard, type: :model do
41
41
  { identification_number: '1'*(identification_number_max_length+1) } => 2,
42
42
  { identification_number: 'A'*(identification_number_max_length+1) } => 2
43
43
 
44
+ it_behaves_like 'validates text', model_attributes, :name, length: 2..described_class.columns_hash['name'].limit
45
+ it_behaves_like 'validates text', model_attributes, :address, length: 2..described_class.columns_hash['address'].limit
46
+
44
47
  end
45
48
 
46
49
  end
@@ -1,7 +1,7 @@
1
1
  module Unidom
2
2
  module Certificate
3
3
  module China
4
- VERSION = '1.5.3'.freeze
4
+ VERSION = '1.5.4'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-certificate-china
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Topbit Du
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-02 00:00:00.000000000 Z
11
+ date: 2017-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-certificate