Sha256: edcd38d905a9db5739f4afa06143eb1f6ef65f16fa11d0bbaa80fcbc56f55705

Contents?: true

Size: 363 Bytes

Versions: 79

Compression:

Stored size: 363 Bytes

Contents

require 'spec_helper'

module Itamae
  describe Node do
    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)
        expected = described_class.new(a: :b, c: :d, e: :f)
        expect(a.reverse_merge(a: :c, e: :f)).to eq(expected)
      end
    end
  end
end

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
itamae-1.2.0 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.26 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.25 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.24 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.23 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.22 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.21 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.20 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.19 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.18 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.17 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.16 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.15 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.14 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.13 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.12 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.11 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.10 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.9 spec/unit/lib/itamae/node_spec.rb
itamae-1.1.8 spec/unit/lib/itamae/node_spec.rb