Sha256: 0e4fef56329dc925a52e9317bc7d3f3ebe27dd9dd70b2acb33cb33390a5d5b4f

Contents?: true

Size: 685 Bytes

Versions: 67

Compression:

Stored size: 685 Bytes

Contents

Shindo.tests("Fog::Compute[:brightbox] | DatabaseType model", ["brightbox"]) do
  pending if Fog.mocking?

  @service = Fog::Compute[:brightbox]

  tests("success") do
    tests("#all") do
      @database_types = @service.database_types.all
      test("returns results") { !@database_types.empty? }
    end

    @sample_identifier = @database_types.first.id
    pending if @sample_identifier.nil?

    tests("#get(#{@sample_identifier})") do
      @database_type = @service.database_types.get(@sample_identifier)

      test("disk is not nil") do
        !@database_type.disk.nil?
      end

      test("ram is not nil") do
        !@database_type.ram.nil?
      end
    end
  end
end

Version data entries

67 entries across 64 versions & 7 rubygems

Version Path
fog-brightbox-1.12.0 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.11.0 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.10.0 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.9.1 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.9.0 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.8.2 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.8.1 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.8.0 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.7.3 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.7.2 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.7.1 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.7.0 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.6.0 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.5.0 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.5.0.rc1 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.4.2 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.4.1 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.4.0 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.3.0 tests/brightbox/models/compute/database_type_tests.rb
fog-brightbox-1.2.0 tests/brightbox/models/compute/database_type_tests.rb