saucy 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ Feature: edit permissions for a project
18
18
  And "jane@example.com" is a member of the "thoughtbot" account
19
19
  When I go to the settings page for the "thoughtbot" account
20
20
  And I follow "Projects"
21
- And I follow "Stocknames"
21
+ And I follow "Stocknames" within "ul.projects"
22
22
  Then the "Bill" checkbox should be checked
23
23
  And the "Jane" checkbox should not be checked
24
24
  And I should not see "Jeff"
@@ -26,7 +26,7 @@ Feature: edit permissions for a project
26
26
  And I uncheck "Bill"
27
27
  And I press "Update"
28
28
  Then I should see "Project was updated"
29
- When I follow "Stocknames"
29
+ When I follow "Stocknames" within "ul.projects"
30
30
  Then the "Bill" checkbox should not be checked
31
31
  And the "Jane" checkbox should be checked
32
32
  And I should not see "Jeff"
@@ -14,14 +14,14 @@ Feature: Manage Projects
14
14
  And I fill in "Name" with "Project 1"
15
15
  And I press "Create"
16
16
  And I go to the projects page for the "Test" account
17
- Then I should see "Project 1"
17
+ Then I should see "Project 1" within "ul.projects"
18
18
 
19
19
  Scenario: Edit a project
20
20
  Given the following project exists:
21
21
  | account | name |
22
22
  | name: Test | Project 1 |
23
23
  When I go to the projects page for the "Test" account
24
- And I follow "Project 1"
24
+ And I follow "Project 1" within "ul.projects"
25
25
  And I fill in "Name" with "Name Change"
26
26
  And I press "Update"
27
27
  Then I should see "Name Change"
@@ -35,7 +35,7 @@ Feature: Manage Projects
35
35
  | name: Another | Project 4 |
36
36
  And "joe@example.com" is a member of the "Other" account
37
37
  When I go to the projects page for the "Test" account
38
- Then I should see "Project 1"
39
- And I should see "Project 2"
40
- But I should not see "Project 3"
41
- And I should not see "Project 4"
38
+ Then I should see "Project 1" within "ul.projects"
39
+ And I should see "Project 2" within "ul.projects"
40
+ But I should not see "Project 3" within "ul.projects"
41
+ And I should not see "Project 4" within "ul.projects"
@@ -3,7 +3,7 @@ module Saucy
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
6
- helper_method :current_account
6
+ helper_method :current_account, :current_project
7
7
  include InstanceMethods
8
8
  end
9
9
 
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
  - 1
9
- - 8
10
- version: 0.1.8
9
+ - 9
10
+ version: 0.1.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - thoughtbot, inc.
@@ -21,10 +21,9 @@ date: 2010-12-21 00:00:00 -05:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
- type: :runtime
25
- prerelease: false
26
24
  name: formtastic
27
- version_requirements: &id001 !ruby/object:Gem::Requirement
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
28
27
  none: false
29
28
  requirements:
30
29
  - - ">="
@@ -34,12 +33,12 @@ dependencies:
34
33
  - 1
35
34
  - 2
36
35
  version: "1.2"
37
- requirement: *id001
38
- - !ruby/object:Gem::Dependency
39
36
  type: :runtime
40
- prerelease: false
37
+ version_requirements: *id001
38
+ - !ruby/object:Gem::Dependency
41
39
  name: railties
42
- version_requirements: &id002 !ruby/object:Gem::Requirement
40
+ prerelease: false
41
+ requirement: &id002 !ruby/object:Gem::Requirement
43
42
  none: false
44
43
  requirements:
45
44
  - - ">="
@@ -50,12 +49,12 @@ dependencies:
50
49
  - 0
51
50
  - 3
52
51
  version: 3.0.3
53
- requirement: *id002
52
+ type: :runtime
53
+ version_requirements: *id002
54
54
  - !ruby/object:Gem::Dependency
55
- type: :development
56
- prerelease: false
57
55
  name: aruba
58
- version_requirements: &id003 !ruby/object:Gem::Requirement
56
+ prerelease: false
57
+ requirement: &id003 !ruby/object:Gem::Requirement
59
58
  none: false
60
59
  requirements:
61
60
  - - "="
@@ -66,7 +65,8 @@ dependencies:
66
65
  - 2
67
66
  - 6
68
67
  version: 0.2.6
69
- requirement: *id003
68
+ type: :development
69
+ version_requirements: *id003
70
70
  description: Clearance-based Rails engine for Software as a Service (Saas) that provides account and project management
71
71
  email: support@thoughtbot.com
72
72
  executables: []
@@ -174,7 +174,7 @@ files:
174
174
  - spec/support/authorization_helpers.rb
175
175
  - spec/support/clearance_matchers.rb
176
176
  - spec/views/accounts/_account.html.erb_spec.rb
177
- has_rdoc: false
177
+ has_rdoc: true
178
178
  homepage: http://github.com/thoughtbot/saucy
179
179
  licenses: []
180
180