Sha256: 17efce0a056c084c070ee0db5ebba7445f5dc939a91f76ce590cfaf2151c127c
Contents?: true
Size: 533 Bytes
Versions: 36
Compression:
Stored size: 533 Bytes
Contents
Shindo.tests('Slicehost | image requests', ['slicehost']) do @image_format = { 'id' => Integer, 'name' => String } tests('success') do tests('#get_image(19)').formats(@image_format) do Slicehost[:slices].get_image(19).body end tests('#get_images').formats({ 'images' => [@image_format] }) do Slicehost[:slices].get_images.body end end tests('failure') do tests('#get_image(0)').raises(Excon::Errors::Forbidden) do Slicehost[:slices].get_image(0) end end end
Version data entries
36 entries across 36 versions & 2 rubygems