Sha256: ea0657ed84814d86a0d92070f9997f11f9f8997d3e58e3dd7e7b5c64838a86f5
Contents?: true
Size: 460 Bytes
Versions: 10
Compression:
Stored size: 460 Bytes
Contents
Shindo.tests('Slicehost#get_flavor', 'slicehost') do tests('success') do before do @data = Slicehost[:slices].get_flavor(1).body end test('has proper output format') do has_format(@data, Slicehost::Formats::FLAVOR) end end tests('failure') do test('raises Forbidden error if flavor does not exist') do has_error(Excon::Errors::Forbidden) do Slicehost[:slices].get_flavor(0) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems