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

Version Path
itamae-1.2.19 spec/unit/lib/itamae/node_spec.rb
itamae-1.2.18 spec/unit/lib/itamae/node_spec.rb
itamae-1.2.17 spec/unit/lib/itamae/node_spec.rb
itamae-1.2.16 spec/unit/lib/itamae/node_spec.rb
itamae-1.2.15 spec/unit/lib/itamae/node_spec.rb
itamae-1.2.14 spec/unit/lib/itamae/node_spec.rb
itamae-1.2.13 spec/unit/lib/itamae/node_spec.rb
itamae-1.2.12 spec/unit/lib/itamae/node_spec.rb
itamae-1.2.11 spec/unit/lib/itamae/node_spec.rb
itamae-1.2.10 spec/unit/lib/itamae/node_spec.rb
itamae-1.2.9 spec/unit/lib/itamae/node_spec.rb
itamae-1.2.8 spec/unit/lib/itamae/node_spec.rb
itamae-1.2.7 spec/unit/lib/itamae/node_spec.rb
itamae-1.2.6 spec/unit/lib/itamae/node_spec.rb
itamae-1.2.5 spec/unit/lib/itamae/node_spec.rb
itamae-1.2.4 spec/unit/lib/itamae/node_spec.rb
itamae-1.2.3 spec/unit/lib/itamae/node_spec.rb