Dne 22.7.2011 09:59, jprovazn@redhat.com napsal(a):
From: Jan Provaznik <jprovazn@redhat.com>

---
 .../controllers/provider_accounts_controller.rb    |    2 +-
 src/features/provider_account.feature              |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/app/controllers/provider_accounts_controller.rb b/src/app/controllers/provider_accounts_controller.rb
index 63523b4..59616a0 100644
--- a/src/app/controllers/provider_accounts_controller.rb
+++ b/src/app/controllers/provider_accounts_controller.rb
@@ -74,7 +74,7 @@ class ProviderAccountsController < ApplicationController
         flash[:notice] = t('provider_accounts.index.account_added', :list => @provider_account.name, :count => 1)
         redirect_to provider_account_path(@provider_account)
       else
-        flash[:error] = "Credentials are invalid!"
+        flash[:error] = "Cannot add the provider account."
         render :action => 'new' and return
       end
     rescue Exception => e
diff --git a/src/features/provider_account.feature b/src/features/provider_account.feature
index e4d8d0b..778d3ea 100644
--- a/src/features/provider_account.feature
+++ b/src/features/provider_account.feature
@@ -59,7 +59,8 @@ Feature: Manage Provider Accounts
     And I fill in "provider_account[credentials_hash][password]" with "wrongpassword"
     And I fill in "quota[maximum_running_instances]" with "13"
     And I press "Save"
-    Then I should see "Credentials are invalid!"
+    Then I should see "Cannot add the provider account."
+    Then I should see "Login Credenials are Invalid for this Provider"
 
   Scenario: Delete a provider account
     Given there is a provider named "testprovider"
ACK