lsv-plus 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lsv_plus/record.rb +1 -0
- data/lib/lsv_plus/version.rb +1 -1
- data/spec/record_spec.rb +15 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87b8fe170f603357b6a3f912437fd2a236a9f3f8
|
4
|
+
data.tar.gz: b962b4deed60a8d27e3ac5ae98b4eb5cd8a965df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bcec36e1d580286c98c02ea5fd3ad09dc3c47c08803ebf34bcc0a447afc5c54f84c49e19bce3ea98bb44ce56b0e4718621a5fd8e7d71097d268b1a01c72ac9e
|
7
|
+
data.tar.gz: 3b6e90367977ed8bbcfccd05d1668e57d554e61c144680536a83083f93b331652768dc4d0d1449bec554393b84dfd7fc802bd068829f006a7fa30a5873524fec
|
data/lib/lsv_plus/record.rb
CHANGED
data/lib/lsv_plus/version.rb
CHANGED
data/spec/record_spec.rb
CHANGED
@@ -61,6 +61,20 @@ RSpec.describe LSVplus::Record do
|
|
61
61
|
end
|
62
62
|
|
63
63
|
describe '#==' do
|
64
|
-
|
64
|
+
context 'the same object type' do
|
65
|
+
context 'same attributes' do
|
66
|
+
specify { expect(LSVplus::Record.new(attributes)).to eq(LSVplus::Record.new(attributes)) }
|
67
|
+
end
|
68
|
+
|
69
|
+
context 'other attributes' do
|
70
|
+
specify do
|
71
|
+
expect(LSVplus::Record.new(attributes.merge(amount: 1))).to_not eq(LSVplus::Record.new(attributes))
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
context 'other object type' do
|
77
|
+
specify { expect(LSVplus::Record.new(attributes)).to_not eq(Object.new) }
|
78
|
+
end
|
65
79
|
end
|
66
80
|
end
|