Sha256: 0e26eab1854cbbac3696ca7aa2f79178374faa153fde839d165cb84728a9b9a6
Contents?: true
Size: 666 Bytes
Versions: 17
Compression:
Stored size: 666 Bytes
Contents
# coding: utf-8 Shindo.tests('Fog::Compute[:sakuracloud] | list_zones request', ['sakuracloud', 'compute']) do @zone_format = { 'Index' => Integer, 'ID' => Integer, 'Name' => String, 'Description' => String } tests('success') do tests('#list_zones') do zones = compute_service.list_zones test 'returns a Hash' do zones.body.is_a? Hash end if Fog.mock? tests('Zones').formats(@zone_format, false) do zones.body['Zones'].first end else returns(200) { zones.status } returns(false) { zones.body.empty? } end end end end
Version data entries
17 entries across 17 versions & 4 rubygems