From 96a3d07d8670becec739efc518de8df2c9b3c925 Mon Sep 17 00:00:00 2001 From: geemus Date: Tue, 24 May 2011 13:16:48 -0700 Subject: [PATCH] [ecloud] mark bin specs pending unless credentials provided closes #325 --- spec/ecloud/bin_spec.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/spec/ecloud/bin_spec.rb b/spec/ecloud/bin_spec.rb index 1f934c44d..3a3754de6 100644 --- a/spec/ecloud/bin_spec.rb +++ b/spec/ecloud/bin_spec.rb @@ -1,19 +1,25 @@ require 'ecloud/spec_helper' describe 'Ecloud' do - it { Ecloud.should be_available } - it { Ecloud.should have_at_least(1).services } + 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? Ecloud[:compute].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