Sha256: 45b128983818d8fe68cff096b12ecf29a12f0160f9ed0e177aa2f9351ba3f667

Contents?: true

Size: 478 Bytes

Versions: 12

Compression:

Stored size: 478 Bytes

Contents

Shindo.tests("Fog::Compute[:google] | disk_types model", ['google']) do
  @disk_types = Fog::Compute[:google].disk_types

  tests('success') do

    tests('#all').succeeds do
      @disk_types.all
    end

    tests('#get').succeeds do
      disk_type = @disk_types.all.first
      @disk_types.get(disk_type.name)
    end

    tests('failure') do
      tests('#get').returns(nil) do
        @disk_types.get(Fog::Mock.random_letters_and_numbers(16))
      end
    end

  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
fog-google-0.0.5 tests/models/compute/disk_types_tests.rb
fog-google-0.0.4 tests/models/compute/disk_types_tests.rb
fog-google-0.0.3 tests/models/compute/disk_types_tests.rb
fog-google-0.0.2 tests/models/compute/disk_types_tests.rb
fog-1.29.0 tests/google/models/compute/disk_types_tests.rb
fog-1.28.0 tests/google/models/compute/disk_types_tests.rb
fog-1.27.0 tests/google/models/compute/disk_types_tests.rb
fog-1.26.0 tests/google/models/compute/disk_types_tests.rb
fog-1.25.0 tests/google/models/compute/disk_types_tests.rb
nsidc-fog-1.24.1 tests/google/models/compute/disk_types_tests.rb
fog-1.24.0 tests/google/models/compute/disk_types_tests.rb
fog-1.23.0 tests/google/models/compute/disk_types_tests.rb