saucy 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
<%= form.inputs do %>
|
2
|
-
|
2
|
+
<% if current_user.memberships.admin.size > 1 -%>
|
3
|
+
<%= form.input :account, :collection => current_user.memberships.admin.collect(&:account) %>
|
4
|
+
<% else %>
|
5
|
+
<%= form.input :account, :as => :hidden, :value => current_account.id %>
|
6
|
+
<% end -%>
|
3
7
|
<%= form.input :name, :hint => project_url(form.object).html_safe %>
|
4
8
|
<%= form.input :keyword, :wrapper_html => { :style => 'display: none' } %>
|
5
9
|
<% if form.object.persisted? -%>
|
@@ -12,13 +12,13 @@ Feature: Manage Projects
|
|
12
12
|
| name | email |
|
13
13
|
| Joe User | joe@example.com |
|
14
14
|
And "joe@example.com" is an admin of the "Test" account
|
15
|
-
And "joe@example.com" is an admin of the "Another" account
|
16
15
|
And I sign in as "joe@example.com"
|
17
16
|
|
18
|
-
Scenario: Create new project
|
17
|
+
Scenario: Create new project with one account
|
19
18
|
When I go to the projects page for the "Test" account
|
20
19
|
And I follow "New Project"
|
21
|
-
Then the
|
20
|
+
Then the page should not include "select#project_account_id"
|
21
|
+
And the "Joe User" checkbox should be checked
|
22
22
|
When I fill in "Name" with "Project 1"
|
23
23
|
And I fill in "Keyword" with "project1"
|
24
24
|
And I should see "http://www.example.com/accounts/test/projects/keyword"
|
@@ -26,6 +26,12 @@ Feature: Manage Projects
|
|
26
26
|
And I go to the projects page for the "Test" account
|
27
27
|
Then I should see "Project 1" within "ul.projects"
|
28
28
|
|
29
|
+
Scenario: Creating new project with two accounts shows the account selection
|
30
|
+
Given "joe@example.com" is an admin of the "Another" account
|
31
|
+
When I go to the projects page for the "Test" account
|
32
|
+
And I follow "New Project"
|
33
|
+
Then the page should include "select#project_account_id"
|
34
|
+
|
29
35
|
Scenario: Edit a project
|
30
36
|
Given the following project exists:
|
31
37
|
| account | name |
|
@@ -38,7 +44,8 @@ Feature: Manage Projects
|
|
38
44
|
|
39
45
|
@javascript
|
40
46
|
Scenario: Move a project
|
41
|
-
Given the
|
47
|
+
Given "joe@example.com" is an admin of the "Another" account
|
48
|
+
And the following projects exist:
|
42
49
|
| account | name |
|
43
50
|
| name: Test | Project 1 |
|
44
51
|
When I go to the projects page for the "Test" account
|
@@ -50,7 +57,8 @@ Feature: Manage Projects
|
|
50
57
|
|
51
58
|
@javascript
|
52
59
|
Scenario: Move a project when account being moved to is at the account limit
|
53
|
-
Given
|
60
|
+
Given "joe@example.com" is an admin of the "Another" account
|
61
|
+
And the following limit exists for the "Another" account:
|
54
62
|
| name | value |
|
55
63
|
| projects | 1 |
|
56
64
|
And the following projects exist:
|
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: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 2
|
10
|
+
version: 0.7.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- thoughtbot, inc.
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2011-05-
|
21
|
+
date: 2011-05-08 00:00:00 -04:00
|
22
22
|
default_executable:
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|