--- 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