require 'spec_helper' describe VagrantWindows::Config::Windows , :unit => true do let(:instance) { described_class.new } describe "defaults" do subject do instance.tap do |o| o.finalize! end end its("halt_timeout") { should == 30 } its("halt_check_interval") { should == 1 } end describe "overriding defaults" do [:halt_timeout, :halt_check_interval].each do |attribute| it "should not default #{attribute} if overridden" do instance.send("#{attribute}=".to_sym, 10) instance.finalize! instance.send(attribute).should == 10 end end end end