Sha256: 4dc65e44aea2c73db960973a6147e97a9bb508d9456998342b8c3a4ec28adea2
Contents?: true
Size: 1.49 KB
Versions: 7
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 == 20 } 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
7 entries across 7 versions & 1 rubygems