Sha256: d9a9613490474f13cfefed5dc51eddfde613f986191b8db90b56c9f87872c72a

Contents?: true

Size: 562 Bytes

Versions: 6

Compression:

Stored size: 562 Bytes

Contents

require 'ecloud/spec_helper'

describe 'Ecloud' do
  it { Ecloud.should be_available }

  it { Ecloud.should have_at_least(1).services }

  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
        Ecloud[:compute].should_not be_nil
      end
    end

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

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fog-0.8.1 spec/ecloud/bin_spec.rb
fog-0.8.0 spec/ecloud/bin_spec.rb
fog-0.7.2 spec/ecloud/bin_spec.rb
fog-0.7.1 spec/ecloud/bin_spec.rb
fog-0.7.0 spec/ecloud/bin_spec.rb
fog-0.6.0 spec/ecloud/bin_spec.rb