Sha256: 41e849b9c56dbefb4b5ef1957999febd070e8aa706a6b97081dcc2bda4806df7
Contents?: true
Size: 713 Bytes
Versions: 32
Compression:
Stored size: 713 Bytes
Contents
Shindo.tests('Fog::Compute[:slicehost] | flavor requests', ['slicehost']) do @flavor_format = { 'id' => Integer, 'name' => String, 'price' => Integer, 'ram' => Integer } tests('success') do tests('#get_flavor(1)').formats(@flavor_format) do pending if Fog.mocking? Fog::Compute[:slicehost].get_flavor(1).body end tests('#get_flavors').formats({ 'flavors' => [@flavor_format] }) do pending if Fog.mocking? Fog::Compute[:slicehost].get_flavors.body end end tests('failure') do tests('#get_flavor(0)').raises(Excon::Errors::Forbidden) do pending if Fog.mocking? Fog::Compute[:slicehost].get_flavor(0) end end end
Version data entries
32 entries across 32 versions & 8 rubygems