resident 0.0.12 → 0.0.13
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf01e9d01d506e8d1679e55d195fbf5b2b68e4f1ea92e071faa067c628ccdeed
|
4
|
+
data.tar.gz: 05faa5d541a34c27f6bfd7b3285ca1d7e45b0ec6a8368a76bc989f670bea6f88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5c5dae1f39cfc92325e801ccbe0af1823578afb21ace71433853d9bd689988789bf263751837589c35b89ffdf8affd2c5588971753393de21b86b5492c889a6
|
7
|
+
data.tar.gz: 6796c74e79556f2a291b6e18657551a5300809951c9310fa4dd5f0788f422b84bdd5ddf1b3cad52e9c175f72429a7c317931ae4c9d2bc5ff47b2d3dc408d87ad
|
@@ -74,4 +74,23 @@ describe NationalIdentificationNumber::Base do
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
+
describe '#==' do
|
78
|
+
it 'should be true if same class and string representation' do
|
79
|
+
one = NationalIdentificationNumber::Swedish.new('040626-5488')
|
80
|
+
other = NationalIdentificationNumber::Swedish.new('20040626-5488')
|
81
|
+
expect(one == other).to be true
|
82
|
+
end
|
83
|
+
|
84
|
+
it 'should be false if other string representation' do
|
85
|
+
one = NationalIdentificationNumber::Swedish.new('040626-5488')
|
86
|
+
other = NationalIdentificationNumber::Swedish.new('040626-8128')
|
87
|
+
expect(one == other).to be false
|
88
|
+
end
|
89
|
+
|
90
|
+
it 'should be false if other class' do
|
91
|
+
one = NationalIdentificationNumber::Swedish.new('040626-5488')
|
92
|
+
other = NationalIdentificationNumber::Finnish.new('040626-5488')
|
93
|
+
expect(one == other).to be false
|
94
|
+
end
|
95
|
+
end
|
77
96
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resident
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bukowskis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|