sub_diff 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/sub_diff/collection.rb +1 -0
- data/lib/sub_diff/version.rb +1 -1
- data/spec/sub_diff/collection_spec.rb +5 -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: a9bf511596ffa127d50dbb11ca5c23455c22e2e9
|
4
|
+
data.tar.gz: 1ddf085a4b05b5053d42f7934211ff40af9f7d24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 156e609d5da9583939778c4b1b38b97f044ee168b3f2f668ffcc646f0a7960e5c57d887744f8be7d945c2c0849755a7c456769ebc22232dbeb7aecc7c2a4b266
|
7
|
+
data.tar.gz: 6468333a0d3e6ec9be8479c2ecbe261b856abf7494073729b7f71202c65cab11c7b9ebd65440c4db5de19a12fb184a007c93281b117d25bcd0f0c947e6a86e6b
|
data/Gemfile.lock
CHANGED
data/lib/sub_diff/collection.rb
CHANGED
data/lib/sub_diff/version.rb
CHANGED
@@ -35,6 +35,10 @@ RSpec.describe SubDiff::Collection do
|
|
35
35
|
expect(block).to change(subject, :to_s)
|
36
36
|
expect(subject.to_s).to eq('')
|
37
37
|
end
|
38
|
+
|
39
|
+
it 'should return the instance itself' do
|
40
|
+
expect(block.call.object_id).to eq(subject.object_id)
|
41
|
+
end
|
38
42
|
end
|
39
43
|
|
40
44
|
describe '#each' do
|
@@ -79,7 +83,7 @@ RSpec.describe SubDiff::Collection do
|
|
79
83
|
end
|
80
84
|
|
81
85
|
it 'should return the instance itself' do
|
82
|
-
expect(block.call).to eq(subject)
|
86
|
+
expect(block.call.object_id).to eq(subject.object_id)
|
83
87
|
end
|
84
88
|
end
|
85
89
|
|