Sha256: ac1fb944633c436356fb3b440e969e323e93f4270279dd53d28a32c1d42e251d

Contents?: true

Size: 561 Bytes

Versions: 19

Compression:

Stored size: 561 Bytes

Contents

require File.expand_path("../../../../base", __FILE__)

require "vagrant/config/v2/util"

describe Vagrant::Config::V2::Util do
  describe "merging errors" do
    it "should merge matching keys and leave the rest alone" do
      first  = { "one" => ["foo"], "two" => ["two"] }
      second = { "one" => ["bar"], "three" => ["three"] }

      expected = {
        "one" => ["foo", "bar"],
        "two" => ["two"],
        "three" => ["three"]
      }

      result = described_class.merge_errors(first, second)
      result.should == expected
    end
  end
end

Version data entries

19 entries across 19 versions & 6 rubygems

Version Path
tamtam-vagrant-reload-1.1.3 vendor/cache/vagrant-0ac2a8738841/test/unit/vagrant/config/v2/util_test.rb
tamtam-vagrant-reload-1.1.2 vendor/cache/vagrant-0ac2a8738841/test/unit/vagrant/config/v2/util_test.rb
tamtam-vagrant-reload-1.1.1 vendor/cache/vagrant-0ac2a8738841/test/unit/vagrant/config/v2/util_test.rb
tamtam-vagrant-reload-1.1 vendor/cache/vagrant-0ac2a8738841/test/unit/vagrant/config/v2/util_test.rb
tnargav-1.3.6 test/unit/vagrant/config/v2/util_test.rb
tnargav-1.3.3 test/unit/vagrant/config/v2/util_test.rb
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/test/unit/vagrant/config/v2/util_test.rb
tnargav-1.2.3 test/unit/vagrant/config/v2/util_test.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/test/unit/vagrant/config/v2/util_test.rb
vagrant-shell-0.2.6 vendor/bundle/gems/tnargav-1.2.2/test/unit/vagrant/config/v2/util_test.rb
vagrant-shell-0.2.5 vendor/bundle/gems/tnargav-1.2.2/test/unit/vagrant/config/v2/util_test.rb
tnargav-1.2.2 test/unit/vagrant/config/v2/util_test.rb
vagrantup-1.1.3 test/unit/vagrant/config/v2/util_test.rb
vagrantup-1.1.2 test/unit/vagrant/config/v2/util_test.rb
vagrantup-1.1.1 test/unit/vagrant/config/v2/util_test.rb
vagrantup-1.1.0 test/unit/vagrant/config/v2/util_test.rb
vagrantup-1.1.4 test/unit/vagrant/config/v2/util_test.rb
vagrant-actionio-0.0.9 vendor/bundle/bundler/gems/vagrant-c74251a1d9c0/test/unit/vagrant/config/v2/util_test.rb
vagrant-lxc-0.0.1 vendor/vagrant/test/unit/vagrant/config/v2/util_test.rb