On 10/13/2011 02:34 PM, Jirka Tomasek wrote:
---
src/app/views/provider_accounts/show.html.haml | 3 ++-
src/features/provider_account.feature | 9 +++++++++
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/app/views/provider_accounts/show.html.haml
b/src/app/views/provider_accounts/show.html.haml
index 22eb568..ddcc86e 100644
--- a/src/app/views/provider_accounts/show.html.haml
+++ b/src/app/views/provider_accounts/show.html.haml
@@ -11,8 +11,9 @@
%header
%h2 Properties
.section-controls
- #obj_actions.button-container
+ #obj_actions.button-group
= link_to "Edit", edit_provider_provider_account_path(@provider,
@provider_account), :class => "button pill", :title => "Edit
Provider Account"
+ = link_to "Test Connection", provider_provider_account_path(@provider,
@provider_account, :test_account => true), :class => 'button pill'
.content
= render :partial => 'properties'
diff --git a/src/features/provider_account.feature
b/src/features/provider_account.feature
index 58f1e9e..fd078fd 100644
--- a/src/features/provider_account.feature
+++ b/src/features/provider_account.feature
@@ -133,6 +133,15 @@ Feature: Manage Provider Accounts
Then I should be on the testprovider's edit provider page
And I should see "Account Quota Exceeded"
+ Scenario: Test Provider Account connection
+ Given there is a provider named "testprovider"
+ And there is a provider account named "testaccount"
+ And I am on the testprovider's provider accounts page
+ When I follow "testaccount"
+ Then I should see "Test Connection"
+ When I follow "Test Connection"
+ Then I should see "Test Connection Success"
+
# Scenario: Search for Provider Accounts
# Given there is a provider named "testprovider"
# And there is a provider account named "testaccount"
ACK