[PATCH 3/3] BZ 782574 update test so that a fail provider account connection results in an exception
Tzu-Mainn Chen
tzumainn at redhat.com
Fri Feb 3 19:48:14 UTC 2012
---
src/spec/models/provider_account_spec.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/spec/models/provider_account_spec.rb b/src/spec/models/provider_account_spec.rb
index 04b4b1e..83fb318 100644
--- a/src/spec/models/provider_account_spec.rb
+++ b/src/spec/models/provider_account_spec.rb
@@ -76,10 +76,10 @@ describe ProviderAccount do
lambda {provider_account.save!}.should raise_exception
end
- it "when calling connect and it fails with exception it will return nil" do
+ it "when calling connect and it fails with exception it will raise an exception" do
DeltaCloud.should_receive(:new).and_raise(Exception.new)
- @provider_account.connect.should be_nil
+ lambda {@provider_account.connect}.should raise_exception
end
it "should generate xml for a provider account with credentials" do
--
1.7.6.5
More information about the aeolus-devel
mailing list