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

Version Path
fog-0.0.91 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.90 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.89 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.88 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.87 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.86 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.85 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.84 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.83 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.82 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.81 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.80 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.79 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.78 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.77 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.76 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.75 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.74 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.73 tests/slicehost/requests/get_flavor_tests.rb
fog-0.0.72 tests/slicehost/requests/get_flavor_tests.rb