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

Version Path
fog-0.2.30 tests/slicehost/requests/image_tests.rb
fog-0.2.28 tests/slicehost/requests/image_tests.rb
fog-0.2.27 tests/slicehost/requests/image_tests.rb
fog-0.2.26 tests/slicehost/requests/image_tests.rb
fog-0.2.25 tests/slicehost/requests/image_tests.rb
fog-0.2.24 tests/slicehost/requests/image_tests.rb
tecnh-fog-0.2.23.vpc tests/slicehost/requests/image_tests.rb
fog-0.2.23 tests/slicehost/requests/image_tests.rb
fog-0.2.22 tests/slicehost/requests/image_tests.rb
fog-0.2.21 tests/slicehost/requests/image_tests.rb
fog-0.2.20 tests/slicehost/requests/image_tests.rb
fog-0.2.19 tests/slicehost/requests/image_tests.rb
fog-0.2.18 tests/slicehost/requests/image_tests.rb
fog-0.2.17 tests/slicehost/requests/image_tests.rb
fog-0.2.16 tests/slicehost/requests/image_tests.rb
fog-0.2.15 tests/slicehost/requests/image_tests.rb
fog-0.2.14 tests/slicehost/requests/image_tests.rb
fog-0.2.13 tests/slicehost/requests/image_tests.rb
fog-0.2.12 tests/slicehost/requests/image_tests.rb
fog-0.2.11 tests/slicehost/requests/image_tests.rb