Sha256: 20fb08da8c2eadaeda2131c210ec0f051ccda03b86ce17cea565b043a41736ab

Contents?: true

Size: 661 Bytes

Versions: 32

Compression:

Stored size: 661 Bytes

Contents

require 'ecloud/spec_helper'

describe 'Ecloud' do

  it do
    pending unless Ecloud.available?
    Ecloud.should have_at_least(1).services
  end

  describe "when indexing it like an array" do


    describe "with a service that exists" do
      it "should return something when indexed with a configured service" do
        pending unless Ecloud.available?
        Fog::Compute[:ecloud].should_not be_nil
      end
    end

    describe "with a service that does not exist" do
      it "should raise an ArgumentError" do
        pending unless Ecloud.available?
        lambda {Ecloud[:foozle]}.should raise_error(ArgumentError)
      end
    end

  end
end

Version data entries

32 entries across 32 versions & 8 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/spec/ecloud/bin_spec.rb
michiels-fog-1.3.1 spec/ecloud/bin_spec.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/spec/ecloud/bin_spec.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/spec/ecloud/bin_spec.rb
fog-1.3.1 spec/ecloud/bin_spec.rb
fog-1.3.0 spec/ecloud/bin_spec.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/spec/ecloud/bin_spec.rb
fog-1.2.0 spec/ecloud/bin_spec.rb
ktheory-fog-1.1.2 spec/ecloud/bin_spec.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/spec/ecloud/bin_spec.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/spec/ecloud/bin_spec.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/spec/ecloud/bin_spec.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/spec/ecloud/bin_spec.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/spec/ecloud/bin_spec.rb
fog-1.1.2 spec/ecloud/bin_spec.rb
fog_tractical-1.1.4 spec/ecloud/bin_spec.rb
fog_tractical-1.1.3 spec/ecloud/bin_spec.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/spec/ecloud/bin_spec.rb
fog-1.1.1 spec/ecloud/bin_spec.rb
fog-1.1.0 spec/ecloud/bin_spec.rb