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.14.1 spec/unit/lib/itamae/node_spec.rb
itamae-1.14.0 spec/unit/lib/itamae/node_spec.rb
itamae-1.13.1 spec/unit/lib/itamae/node_spec.rb
itamae-1.13.0 spec/unit/lib/itamae/node_spec.rb
itamae-1.12.6 spec/unit/lib/itamae/node_spec.rb
itamae-1.12.5 spec/unit/lib/itamae/node_spec.rb
itamae-1.12.4 spec/unit/lib/itamae/node_spec.rb
itamae-1.12.3 spec/unit/lib/itamae/node_spec.rb
itamae-1.12.2 spec/unit/lib/itamae/node_spec.rb
itamae-1.12.1 spec/unit/lib/itamae/node_spec.rb
itamae-1.12.0 spec/unit/lib/itamae/node_spec.rb
itamae-1.11.2 spec/unit/lib/itamae/node_spec.rb
itamae-1.11.1 spec/unit/lib/itamae/node_spec.rb
itamae-1.11.0 spec/unit/lib/itamae/node_spec.rb
itamae-1.10.10 spec/unit/lib/itamae/node_spec.rb
itamae-1.10.9 spec/unit/lib/itamae/node_spec.rb
itamae-1.10.8 spec/unit/lib/itamae/node_spec.rb
itamae-1.10.7 spec/unit/lib/itamae/node_spec.rb
itamae-spec-0.0.6 spec/unit/lib/itamae/node_spec.rb
itamae-spec-0.0.5 spec/unit/lib/itamae/node_spec.rb