Sha256: af32c55f033526cfe56eca4cd63a922fdbf490e097ad60ca3c59998a63d60b82
Contents?: true
Size: 421 Bytes
Versions: 137
Compression:
Stored size: 421 Bytes
Contents
require 'spec_helper' module Itamae describe Node do let(:backend) { nil } describe "#reverse_merge" do it "merges a hash but the method receiver's value will be preferred" do a = described_class.new({a: :b, c: :d}, backend) expected = described_class.new({a: :b, c: :d, e: :f}, backend) expect(a.reverse_merge(a: :c, e: :f).mash).to eq(expected.mash) end end end end
Version data entries
137 entries across 137 versions & 3 rubygems