Tests that boolean configs are merged up properly [GH-651]

This commit is contained in:
Mitchell Hashimoto 2012-01-18 18:51:15 -08:00
parent c600d9237b
commit bdb591bc0f
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
require File.expand_path("../../../base", __FILE__)
describe Vagrant::Config::SSHConfig do
include_context "unit"
[:forward_agent, :forward_x11].each do |bool_setting|
it "merges boolean #{bool_setting} properly" do
a = described_class.new
a.send("#{bool_setting}=", true)
b = described_class.new
c = a.merge(b)
c.send(bool_setting).should be
end
end
end