itamae 1.0.0.beta12 → 1.0.0.beta13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/itamae/node.rb +7 -0
- data/lib/itamae/version.txt +1 -1
- data/spec/unit/lib/itamae/node_spec.rb +7 -0
- 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: cc9e5387ea9471a6357ec8d1d2fec041fd70bb2c
|
4
|
+
data.tar.gz: 250fa56a23f0d5450f1d9f24c733c4b52b570707
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d98ca86c23813146e2bcd9eaf3b519da859caf914fb61d9ce79c179b61c7144cac99c05957b948ceecac6c1942626b6455e8702c39b935c17b2f41fec7d47dbb
|
7
|
+
data.tar.gz: c48f5785e62f131cfe7509a811bb0ed256086f2bee6224412cf0a732f372acc9492e1d1758b9fa6a73112fb6eca5497fb0d3623ba1962867b54424ef664eeb14
|
data/lib/itamae/node.rb
CHANGED
data/lib/itamae/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.
|
1
|
+
1.0.0.beta13
|
@@ -2,5 +2,12 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
module Itamae
|
4
4
|
describe Node do
|
5
|
+
describe "#reverse_merge" do
|
6
|
+
it "merges a hash but the method receiver's value will be preferred" do
|
7
|
+
a = described_class.new(a: :b, c: :d)
|
8
|
+
expected = described_class.new(a: :b, c: :d, e: :f)
|
9
|
+
expect(a.reverse_merge(a: :c, e: :f)).to eq(expected)
|
10
|
+
end
|
11
|
+
end
|
5
12
|
end
|
6
13
|
end
|