mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[ecloud] mark bin specs pending unless credentials provided
closes #325
This commit is contained in:
parent
295b5300e5
commit
96a3d07d86
1 changed files with 8 additions and 2 deletions
|
@ -1,19 +1,25 @@
|
||||||
require 'ecloud/spec_helper'
|
require 'ecloud/spec_helper'
|
||||||
|
|
||||||
describe 'Ecloud' do
|
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 "when indexing it like an array" do
|
||||||
|
|
||||||
|
|
||||||
describe "with a service that exists" do
|
describe "with a service that exists" do
|
||||||
it "should return something when indexed with a configured service" do
|
it "should return something when indexed with a configured service" do
|
||||||
|
pending unless Ecloud.available?
|
||||||
Ecloud[:compute].should_not be_nil
|
Ecloud[:compute].should_not be_nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "with a service that does not exist" do
|
describe "with a service that does not exist" do
|
||||||
it "should raise an ArgumentError" do
|
it "should raise an ArgumentError" do
|
||||||
|
pending unless Ecloud.available?
|
||||||
lambda {Ecloud[:foozle]}.should raise_error(ArgumentError)
|
lambda {Ecloud[:foozle]}.should raise_error(ArgumentError)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue