Sha256: 17d7e3545ee93a01118e9746d4e504ab67cc096749a0b91fc7edb09c1d9079de

Contents?: true

Size: 411 Bytes

Versions: 13

Compression:

Stored size: 411 Bytes

Contents

Shindo.tests('Fog::Compute[:vsphere] | current_time request', ['vsphere']) do
  compute = Fog::Compute[:vsphere]

  tests('The response should') do
    response = compute.current_time
    test('be a kind of Hash') { response.is_a? Hash }
    test('have a current_time key') { response.key? 'current_time' }
    test('have a current_time key with a Time value') { response['current_time'].is_a? Time }
  end
end

Version data entries

13 entries across 11 versions & 2 rubygems

Version Path
fog-vsphere-3.7.0 tests/requests/compute/current_time_tests.rb
fog-vsphere-3.6.8 tests/requests/compute/current_time_tests.rb
fog-vsphere-3.6.7 tests/requests/compute/current_time_tests.rb
fog-vsphere-3.6.6 tests/requests/compute/current_time_tests.rb
fog-vsphere-3.0.0 tests/requests/compute/current_time_tests.rb
fog-vsphere-2.5.0 tests/requests/compute/current_time_tests.rb
fog-vsphere-2.4.0 tests/requests/compute/current_time_tests.rb
fog-vsphere-2.3.0 tests/requests/compute/current_time_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-vsphere-2.2.0/tests/requests/compute/current_time_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-vsphere-2.2.0/tests/requests/compute/current_time_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-vsphere-2.2.0/tests/requests/compute/current_time_tests.rb
fog-vsphere-2.2.0 tests/requests/compute/current_time_tests.rb
fog-vsphere-1.7.0.1 tests/requests/compute/current_time_tests.rb