mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
13 lines
423 B
Ruby
13 lines
423 B
Ruby
|
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.kind_of? Hash }
|
||
|
test('have a current_time key') { response.has_key? 'current_time' }
|
||
|
test('have a current_time key with a Time value') { response['current_time'].kind_of? Time }
|
||
|
end
|
||
|
|
||
|
end
|