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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 725c46b96ea42b6d13f00b4b66bd15b7c4942ee6
|
4
|
+
data.tar.gz: 7053d137d299631018ac28d36cb7276d7c494b39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2017-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-certificate
|