Sha256: d7ecb9e1864bd66ed9ae3b711beca211e92c4f850249212631bd02829220bf41
Contents?: true
Size: 590 Bytes
Versions: 36
Compression:
Stored size: 590 Bytes
Contents
Shindo.tests('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 Slicehost[:slices].get_flavor(1).body end tests('#get_flavors').formats({ 'flavors' => [@flavor_format] }) do Slicehost[:slices].get_flavors.body end end tests('failure') do tests('#get_flavor(0)').raises(Excon::Errors::Forbidden) do Slicehost[:slices].get_flavor(0) end end end
Version data entries
36 entries across 36 versions & 2 rubygems