saucy 0.2.14 → 0.2.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,8 @@
2
2
  <h2>Billing Information</h2>
3
3
  <% end -%>
4
4
 
5
+ <%= render :partial => 'accounts/tab_bar' %>
6
+
5
7
  <%= semantic_form_for @account, :url => account_billing_path(@account) do |form| %>
6
8
  <%= render :partial => 'billings/form', :locals => { :form => form } %>
7
9
 
@@ -1,6 +1,11 @@
1
1
  <% if current_user.admin_of?(current_account) -%>
2
+ <% content_for :header do -%>
3
+ <h2>Billing Information</h2>
4
+ <% end -%>
5
+
6
+ <%= render :partial => 'accounts/tab_bar' %>
7
+
2
8
  <div class="current_credit_card">
3
- <h3>Billing Information</h3>
4
9
  <p>We're currently charging the credit card ending in <%= current_account.credit_card.last_4 %>. <%= link_to "Change", edit_account_billing_path(current_account) %></p>
5
10
  </div>
6
11
  <div class="billing_history">
@@ -79,3 +79,17 @@ Feature: Manage Billing
79
79
  Then I should see "Your Invoices"
80
80
  And I should see "07/01/10 $20"
81
81
  And I should see "08/01/10 $5"
82
+
83
+ Scenario: Navigate back to the main settings page
84
+ Given a paid plan exists with a name of "Paid"
85
+ And the following account exists:
86
+ | name | keyword | plan | cardholder_name | billing_email | card_number | verification_code | expiration_month | expiration_year |
87
+ | Test | test | name: Paid | Joe Smith | jsmith@example.com | 4111111111115555 | 122 | 01 | 2015 |
88
+ And I have signed in with "joe@example.com/test"
89
+ And "joe@example.com" is an admin of the "Test" account
90
+ When I go to the billing page for the "Test" account
91
+ And I follow "Change"
92
+ And I follow "Billing"
93
+ And I follow "Account Info"
94
+ Then I should see "Settings for Test"
95
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saucy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 14
10
- version: 0.2.14
9
+ - 15
10
+ version: 0.2.15
11
11
  platform: ruby
12
12
  authors:
13
13
  - thoughtbot, inc.