Sha256: 491f27d5cb02efc19f9bcd3271f35e819ce295fec2c92c90a9e397fffe843bc6
Contents?: true
Size: 1.49 KB
Versions: 2
Compression:
Stored size: 1.49 KB
Contents
require "vagrant-windows/config/windows" require "vagrant-windows/config/winrm" describe VagrantWindows::Config::Windows 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 describe VagrantWindows::Config::WinRM do let(:instance) { described_class.new } describe "defaults" do subject do instance.tap do |o| o.finalize! end end its("username") { should == "vagrant" } its("password") { should == "vagrant" } its("host") { should == "localhost" } its("port") { should == 5985 } its("guest_port") { should == 5985 } its("max_tries") { should == 12 } its("timeout") { should == 1800 } end describe "overriding defaults" do [:username, :password, :host, :port, :guest_port, :max_tries, :timeout].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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vagrant-windows-1.0.3 | spec/vagrant-windows/config_spec.rb |
vagrant-windows-1.0.1 | spec/vagrant-windows/config_spec.rb |