From: Petr Blaho <pblaho(a)redhat.com>
This changes typo from I18N to I18n in
ProviderAccount#validate_credentials
and corresponding cucumber story - change of expecting text of error
message.
---
src/app/models/provider_account.rb | 2 +-
src/features/provider_account.feature | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app/models/provider_account.rb b/src/app/models/provider_account.rb
index b9929e5..067f5cf 100644
--- a/src/app/models/provider_account.rb
+++ b/src/app/models/provider_account.rb
@@ -91,7 +91,7 @@ class ProviderAccount < ActiveRecord::Base
def validate_credentials
begin
unless valid_credentials?
- errors.add(:base,
I18N.t('provider_accounts.errors.invalid_credentials'))
+ errors.add(:base,
I18n.t('provider_accounts.errors.invalid_credentials'))
end
rescue
errors.add(:base,
I18n.t('provider_accounts.errors.exception_while_validating'))
diff --git a/src/features/provider_account.feature
b/src/features/provider_account.feature
index 44f41cb..58668a8 100644
--- a/src/features/provider_account.feature
+++ b/src/features/provider_account.feature
@@ -56,7 +56,7 @@ Feature: Manage Provider Accounts
And I fill in "quota[maximum_running_instances]" with "13"
And I press "Save"
Then I should see "Cannot add the provider account."
- Then I should see "An error occurred when checking provider credentials."
+ Then I should see "Login credentials are invalid for this provider"
Scenario: Delete a provider account
Given there is a provider named "testprovider"
--
1.7.7.6