Sha256: 68fb4f478941851f48fe15495f9c5dfda5097c9609b8d8ef46146a8daa10ae32

Contents?: true

Size: 595 Bytes

Versions: 15

Compression:

Stored size: 595 Bytes

Contents

require "helpers/integration_test_helper"

class TestRegions < FogIntegrationTest
  NAMES = %w(asia-east1 europe-west1 us-central1 us-central2)

  def setup
    @subject = Fog::Compute[:google].regions
  end

  def test_all
    assert_equal NAMES.size, @subject.all.size
  end

  def test_get
    NAMES.each do |name|
      refute_nil @subject.get(name)
    end
  end

  def test_up
    NAMES.each do |name|
      assert @subject.get(name).up?
    end
  end

  def test_bad_get
    assert_nil @subject.get("bad-name")
  end

  def test_enumerable
    assert_respond_to @subject, :each
  end
end

Version data entries

15 entries across 13 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-google-0.1.0/test/integration/compute/test_regions.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-google-0.1.0/test/integration/compute/test_regions.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-google-0.1.0/test/integration/compute/test_regions.rb
fog-google-0.1.3 test/integration/compute/test_regions.rb
fog-google-0.1.2 test/integration/compute/test_regions.rb
fog-google-0.4.2 test/integration/compute/test_regions.rb
fog-google-0.4.1 test/integration/compute/test_regions.rb
fog-google-0.4.0 test/integration/compute/test_regions.rb
fog-google-0.3.2 test/integration/compute/test_regions.rb
fog-google-0.3.1 test/integration/compute/test_regions.rb
fog-google-0.3.0 test/integration/compute/test_regions.rb
fog-google-0.2.0 test/integration/compute/test_regions.rb
fog-google-0.1.1 test/integration/compute/test_regions.rb
fog-google-0.1.0 test/integration/compute/test_regions.rb
fog-google-0.0.9 test/integration/compute/test_regions.rb