Sha256: c38c23dd65c4362d43532912dff11bba8d528d2a9ecc1e45175dbf796a9903d4
Contents?: true
Size: 532 Bytes
Versions: 8
Compression:
Stored size: 532 Bytes
Contents
Shindo.tests('Fog::Compute[:vsphere] | revert_to_snapshot request', ['vsphere']) do compute = Fog::Compute[:vsphere] tests('The response should') do response = compute.revert_to_snapshot(Fog::Compute::Vsphere::Snapshot.new(service: 1)) test('be a kind of Hash') { response.is_a? Hash } test('should have a task_state key') { response.key? 'state' } end tests('The expected options') do raises(ArgumentError, 'raises ArgumentError when input param is missing') { compute.revert_to_snapshot(nil) } end end
Version data entries
8 entries across 6 versions & 2 rubygems