Sha256: 42f3b4ee3e25ebb6a8ee7423e50e8a3f7e15498d29463802b6a05b6b65148f2a
Contents?: true
Size: 505 Bytes
Versions: 10
Compression:
Stored size: 505 Bytes
Contents
Shindo.tests('Rackspace::Servers#get_image_details', 'rackspace') do tests('success') do before do @data = Rackspace[:servers].get_image_details(3).body['image'] end test('has proper output format') do has_format(@data, Rackspace::Servers::Formats::IMAGE) end end tests('failure') do test('raises NotFound error if image does not exist') do has_error(Excon::Errors::NotFound) do Rackspace[:servers].get_image_details(0) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems