Sha256: 7b40ea7fae721110244532179b469e19dd43bed04bd1e0fb64f686a8f8c17070

Contents?: true

Size: 418 Bytes

Versions: 4

Compression:

Stored size: 418 Bytes

Contents

require_relative '../../test_helper'

describe Fog::Vsphere::Compute::Real do
  include Fog::Vsphere::TestHelper

  before { Fog.unmock! }
  after { Fog.mock! }

  let(:compute) { prepare_compute }

  describe '#get_datacenter' do
    it 'gets datacenter' do
      with_webmock_cassette('get_datacenter') do
        dc = compute.get_datacenter('BRQ')
        assert_equal(dc[:name], 'BRQ')
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-vsphere-3.7.0 tests/requests/compute/get_datacenter_tests.rb
fog-vsphere-3.6.8 tests/requests/compute/get_datacenter_tests.rb
fog-vsphere-3.6.7 tests/requests/compute/get_datacenter_tests.rb
fog-vsphere-3.6.6 tests/requests/compute/get_datacenter_tests.rb