Sha256: 2705de7e1eb35901be2debe186f3fbf6ee2a45166e3d6e49469e8440db2f4691

Contents?: true

Size: 431 Bytes

Versions: 2

Compression:

Stored size: 431 Bytes

Contents

require 'spec_helper'

describe "ESX host" do
  include ESXTestHelpers

  before do
    @test_host = ESX::Host.connect(esx_host, esx_user, esx_password)
  end

  it "connects to and ESX with a valid user/pass" do
    host = nil
    lambda do
      host = ESX::Host.connect(esx_host, esx_user, esx_password)
    end.should_not raise_error
    
  end

  it "retrives the host name" do
    @test_host.name.should_not be_nil
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
esx-0.2.4 spec/unit/host_spec.rb
esx-0.2.3 spec/unit/host_spec.rb