Sha256: 1bf779a230c5ea7cafcd6f0109ffa25808e8b1c37191043c112ea1fbaecddfa1

Contents?: true

Size: 871 Bytes

Versions: 15

Compression:

Stored size: 871 Bytes

Contents

require 'spec_helper'

describe VagrantWindows::Config::WinRM, :unit => true 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 == nil }
    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

15 entries across 15 versions & 1 rubygems

Version Path
vagrant-windows-1.7.0.pre.2 spec/vagrant-windows/winrm_config_spec.rb
vagrant-windows-1.7.0.pre.1 spec/vagrant-windows/winrm_config_spec.rb
vagrant-windows-1.6.0 spec/vagrant-windows/winrm_config_spec.rb
vagrant-windows-1.6.0.pre.1 spec/vagrant-windows/winrm_config_spec.rb
vagrant-windows-1.5.1 spec/vagrant-windows/winrm_config_spec.rb
vagrant-windows-1.5.0 spec/vagrant-windows/winrm_config_spec.rb
vagrant-windows-1.4.0 spec/vagrant-windows/winrm_config_spec.rb
vagrant-windows-1.3.2 spec/vagrant-windows/winrm_config_spec.rb
vagrant-windows-1.3.1 spec/vagrant-windows/winrm_config_spec.rb
vagrant-windows-1.3.0 spec/vagrant-windows/winrm_config_spec.rb
vagrant-windows-1.3.0.pre.3 spec/vagrant-windows/winrm_config_spec.rb
vagrant-windows-1.3.0.pre.2 spec/vagrant-windows/winrm_config_spec.rb
vagrant-windows-1.3.0.pre.1 spec/vagrant-windows/winrm_config_spec.rb
vagrant-windows-1.2.3 spec/vagrant-windows/winrm_config_spec.rb
vagrant-windows-1.2.2 spec/vagrant-windows/winrm_config_spec.rb