cnpj_validator 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/cnpj_validator.gemspec +1 -1
- data/lib/cnpj_validator/cnpj.rb +1 -1
- data/test/cnpj_validator_test.rb +6 -0
- metadata +2 -2
data/cnpj_validator.gemspec
CHANGED
data/lib/cnpj_validator/cnpj.rb
CHANGED
data/test/cnpj_validator_test.rb
CHANGED
@@ -15,6 +15,12 @@ class CnpjValidatorTest < Test::Unit::TestCase
|
|
15
15
|
assert_invalid '03.971.701/5859-70'
|
16
16
|
end
|
17
17
|
|
18
|
+
def test_blank_values
|
19
|
+
assert_invalid ''
|
20
|
+
assert_invalid false
|
21
|
+
assert_invalid nil
|
22
|
+
end
|
23
|
+
|
18
24
|
def test_masked
|
19
25
|
assert_valid '38.417.923/0001-16'
|
20
26
|
assert_valid '43.010.889/0001-09'
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: cnpj_validator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Gabriel Sobrinho
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-07-
|
13
|
+
date: 2011-07-04 00:00:00 -03:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|