Sha256: 0b946c5d97854bae5ff99f4833121294730cad44465ab626f1cdd1ce19be49f2
Contents?: true
Size: 497 Bytes
Versions: 24
Compression:
Stored size: 497 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 validate_format(@data, Slicehost::Formats::FLAVOR) end end tests('failure') do test('raises Forbidden error if flavor does not exist') do begin Slicehost[:slices].get_flavor(0) false rescue Excon::Errors::Forbidden true end end end end
Version data entries
24 entries across 24 versions & 1 rubygems