saucy 0.2.24 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
<%= content_tag_for :div, account do -%>
|
|
2
2
|
<div class="account-header">
|
|
3
3
|
<h3><%= account.name %></h3>
|
|
4
|
-
<% if current_user.admin_of?(account) -%>
|
|
5
|
-
<%= link_to 'Settings', edit_account_path(account), :class => 'project-settings' %>
|
|
6
|
-
<% end -%>
|
|
7
4
|
</div>
|
|
8
5
|
|
|
9
6
|
<%= render 'accounts/projects',
|
|
@@ -6,8 +6,8 @@ Feature: Manage account
|
|
|
6
6
|
Scenario: Edit account details
|
|
7
7
|
Given an account exists with a name of "Test"
|
|
8
8
|
And I am signed in as an admin of the "Test" account
|
|
9
|
-
When I go to the
|
|
10
|
-
And I follow "
|
|
9
|
+
When I go to the settings page
|
|
10
|
+
And I follow "Test"
|
|
11
11
|
Then I should see "Settings for Test"
|
|
12
12
|
When I fill in "Account name" with "Name Change"
|
|
13
13
|
And I press "Update"
|
|
@@ -40,8 +40,7 @@ Feature: Manage Billing
|
|
|
40
40
|
And the "Test" account is past due
|
|
41
41
|
And I have signed in with "joe@example.com/test"
|
|
42
42
|
And "joe@example.com" is an admin of the "Test" account
|
|
43
|
-
When I go to the
|
|
44
|
-
And I follow "Settings" within ".account"
|
|
43
|
+
When I go to the settings page for the "Test" account
|
|
45
44
|
Then I should be on the billing page for the "Test" account
|
|
46
45
|
And I should see "There was an issue processing the credit card you have on file. Please update your credit card information."
|
|
47
46
|
|
|
@@ -11,28 +11,6 @@ describe "/accounts/_account.html.erb" do
|
|
|
11
11
|
render :partial => "accounts/account", :locals => { :account => account }
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
context "admin" do
|
|
15
|
-
before do
|
|
16
|
-
user.stubs(:admin_of? => true)
|
|
17
|
-
render_account
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
it "links to edit the account" do
|
|
21
|
-
rendered.should include(edit_link)
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
context "non admin" do
|
|
26
|
-
before do
|
|
27
|
-
user.stubs(:admin_of? => false)
|
|
28
|
-
render_account
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
it "links to edit the account" do
|
|
32
|
-
rendered.should_not include(edit_link)
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
|
|
36
14
|
context "with projects" do
|
|
37
15
|
let(:project) { Factory.stub(:project, :name => 'Test Project') }
|
|
38
16
|
before do
|
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:
|
|
4
|
+
hash: 37
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 25
|
|
10
|
+
version: 0.2.25
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- thoughtbot, inc.
|
|
@@ -17,13 +17,14 @@ autorequire:
|
|
|
17
17
|
bindir: bin
|
|
18
18
|
cert_chain: []
|
|
19
19
|
|
|
20
|
-
date: 2011-02-
|
|
20
|
+
date: 2011-02-16 00:00:00 -05:00
|
|
21
21
|
default_executable:
|
|
22
22
|
dependencies:
|
|
23
23
|
- !ruby/object:Gem::Dependency
|
|
24
|
-
|
|
24
|
+
type: :runtime
|
|
25
25
|
prerelease: false
|
|
26
|
-
|
|
26
|
+
name: formtastic
|
|
27
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
|
27
28
|
none: false
|
|
28
29
|
requirements:
|
|
29
30
|
- - ">="
|
|
@@ -33,12 +34,12 @@ dependencies:
|
|
|
33
34
|
- 1
|
|
34
35
|
- 2
|
|
35
36
|
version: "1.2"
|
|
36
|
-
|
|
37
|
-
version_requirements: *id001
|
|
37
|
+
requirement: *id001
|
|
38
38
|
- !ruby/object:Gem::Dependency
|
|
39
|
-
|
|
39
|
+
type: :runtime
|
|
40
40
|
prerelease: false
|
|
41
|
-
|
|
41
|
+
name: railties
|
|
42
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
|
42
43
|
none: false
|
|
43
44
|
requirements:
|
|
44
45
|
- - ">="
|
|
@@ -49,12 +50,12 @@ dependencies:
|
|
|
49
50
|
- 0
|
|
50
51
|
- 3
|
|
51
52
|
version: 3.0.3
|
|
52
|
-
|
|
53
|
-
version_requirements: *id002
|
|
53
|
+
requirement: *id002
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
|
-
|
|
55
|
+
type: :runtime
|
|
56
56
|
prerelease: false
|
|
57
|
-
|
|
57
|
+
name: braintree
|
|
58
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
|
58
59
|
none: false
|
|
59
60
|
requirements:
|
|
60
61
|
- - ">="
|
|
@@ -65,12 +66,12 @@ dependencies:
|
|
|
65
66
|
- 6
|
|
66
67
|
- 2
|
|
67
68
|
version: 2.6.2
|
|
68
|
-
|
|
69
|
-
version_requirements: *id003
|
|
69
|
+
requirement: *id003
|
|
70
70
|
- !ruby/object:Gem::Dependency
|
|
71
|
-
|
|
71
|
+
type: :runtime
|
|
72
72
|
prerelease: false
|
|
73
|
-
|
|
73
|
+
name: sham_rack
|
|
74
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
|
74
75
|
none: false
|
|
75
76
|
requirements:
|
|
76
77
|
- - "="
|
|
@@ -81,12 +82,12 @@ dependencies:
|
|
|
81
82
|
- 3
|
|
82
83
|
- 3
|
|
83
84
|
version: 1.3.3
|
|
84
|
-
|
|
85
|
-
version_requirements: *id004
|
|
85
|
+
requirement: *id004
|
|
86
86
|
- !ruby/object:Gem::Dependency
|
|
87
|
-
|
|
87
|
+
type: :runtime
|
|
88
88
|
prerelease: false
|
|
89
|
-
|
|
89
|
+
name: sinatra
|
|
90
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
|
90
91
|
none: false
|
|
91
92
|
requirements:
|
|
92
93
|
- - "="
|
|
@@ -97,12 +98,12 @@ dependencies:
|
|
|
97
98
|
- 1
|
|
98
99
|
- 2
|
|
99
100
|
version: 1.1.2
|
|
100
|
-
|
|
101
|
-
version_requirements: *id005
|
|
101
|
+
requirement: *id005
|
|
102
102
|
- !ruby/object:Gem::Dependency
|
|
103
|
-
|
|
103
|
+
type: :development
|
|
104
104
|
prerelease: false
|
|
105
|
-
|
|
105
|
+
name: aruba
|
|
106
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
|
106
107
|
none: false
|
|
107
108
|
requirements:
|
|
108
109
|
- - "="
|
|
@@ -113,8 +114,7 @@ dependencies:
|
|
|
113
114
|
- 2
|
|
114
115
|
- 6
|
|
115
116
|
version: 0.2.6
|
|
116
|
-
|
|
117
|
-
version_requirements: *id006
|
|
117
|
+
requirement: *id006
|
|
118
118
|
description: Clearance-based Rails engine for Software as a Service (Saas) that provides account and project management
|
|
119
119
|
email: support@thoughtbot.com
|
|
120
120
|
executables: []
|