wally 0.0.21 → 0.0.22

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.
@@ -15,5 +15,4 @@ Feature: Counts
15
15
  """
16
16
  When I visit the home page
17
17
  Then I should see a heading "Features (1)"
18
- And I should see a heading "Tags (4)"
19
- And I should see a heading "Scenarios (2)"
18
+ And I should see a heading "Tags (5)"
@@ -0,0 +1,48 @@
1
+ Feature: Home Page
2
+ In order to simply view a project's complete story set
3
+ As a stakeholder
4
+ I want a home page that displays all features
5
+
6
+
7
+ Scenario: Links to features in alphabetical order
8
+ Given a feature file named "kate_moss.feature" with the contents:
9
+ """
10
+ Feature: Kate Moss
11
+ """
12
+ Given a feature file named "katie_price.feature" with the contents:
13
+ """
14
+ Feature: Katie Price
15
+ """
16
+ Given a feature file named "jessica_jane_clement.feature" with the contents:
17
+ """
18
+ Feature: Jessica-Jane Clement
19
+ """
20
+ Given a feature file named "elle_macpherson.feature" with the contents:
21
+ """
22
+ Feature: Elle Macpherson
23
+ """
24
+ When I visit the home page
25
+ Then I should see a link to my sample features
26
+ And the features are ordered alphabetically
27
+
28
+ Scenario: Display feature tags
29
+ Given a feature file named "sample.feature" with the contents:
30
+ """
31
+ @sample_tag
32
+ Feature: Sample Feature
33
+ """
34
+ When I visit the sample feature page
35
+ Then I should see "sample_tag"
36
+
37
+ Scenario: Feature Content
38
+ Given a feature file named "sample.feature" with the contents:
39
+ """
40
+ Feature: Sample Feature
41
+ In order to get some value
42
+ As a person
43
+ I want to create value
44
+ """
45
+ When I visit the sample feature page
46
+ Then I should see the feature free-form narrative
47
+
48
+
@@ -0,0 +1,73 @@
1
+ Feature: Scenario Page
2
+ In order to view a scenario's intent
3
+ As a stakeholder
4
+ I want a page that displays each scenario and its steps
5
+
6
+ Scenario: View Scenario Content
7
+ Given a feature file named "sample.feature" with the contents:
8
+ """
9
+ Feature: Sample Feature
10
+
11
+ @tag1 @tag2
12
+ Scenario: Sample Aidy
13
+ Given my name is "Aidy"
14
+ When I drink alcohol
15
+ Then I go nuts
16
+ """
17
+ When I visit the sample feature page
18
+ And click on a scenario header link
19
+ Then a page appears with the scenario content
20
+ And I should see "tag1"
21
+ And I should see "tag2"
22
+
23
+
24
+ Scenario: View Scenario Background
25
+ Given a feature file named "sample.feature" with the contents:
26
+ """
27
+ Feature: Sample Feature
28
+
29
+ Background:
30
+ Given some things
31
+
32
+ Scenario: Sample Aidy
33
+ """
34
+ When I visit the sample feature page
35
+ And click on a scenario header link
36
+ Then the background is visible
37
+
38
+ Scenario: View Scenario Tags - Scenario Page
39
+ Given a feature file named "sample.feature" with the contents:
40
+ """
41
+ Feature: Sample Feature
42
+
43
+ Background:
44
+ Given some things
45
+
46
+ @work_in_progress
47
+ Scenario: Sample Aidy
48
+ """
49
+ When I visit the sample feature page
50
+ And click on a scenario header link
51
+ Then I should see "work_in_progress"
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
@@ -50,4 +50,3 @@ end
50
50
  Then /^I should see a heading "([^"]*)"$/ do |text|
51
51
  page.body.should have_content text
52
52
  end
53
-
@@ -1,3 +1,3 @@
1
1
  module Wally
2
- VERSION = "0.0.21"
2
+ VERSION = "0.0.22"
3
3
  end
@@ -1,6 +0,0 @@
1
- - lists_features.features.each do |feature|
2
- %h2
3
- = feature["name"]
4
- :markdown
5
- #{feature["description"]}
6
-
@@ -18,22 +18,23 @@
18
18
  %div.container-fluid
19
19
  %div.sidebar
20
20
  %ul
21
- %li
22
- %a{:href => "/search?q="}
23
- = "Scenarios (#{scenario_count})"
24
- %li
25
- %a{:href => "/"}
26
- = "Features (#{lists_features.features.length})"
21
+ -# %li
22
+ -# %a{:href => "/search?q="}
23
+ -# = "Scenarios (#{scenario_count})"
24
+ -# %li
25
+ -# %a{:href => "/"}
26
+ -# = "Features (#{lists_features.features.length})"
27
27
  %li
28
28
  %a{:href => "/progress"}
29
29
  Progress
30
30
  %h2
31
- Features
31
+ = "Features (#{lists_features.features.length})"
32
32
  %ul
33
33
  - lists_features.features.each do |feature|
34
34
  = haml :feature_link, {:locals => {:feature => feature}, :layout => false}
35
35
  - if tag_count.any?
36
- %h2 Tags
36
+ %h2
37
+ = "Tags (#{tag_count.values.sum})"
37
38
  %ul
38
39
  - tag_count.each do |tag, count|
39
40
  %li
@@ -18,7 +18,7 @@ module Wally
18
18
  it "counts feature tags" do
19
19
  create_feature("feature-1.feature", "@tag1 @tag2\nFeature: Feature 1")
20
20
  create_feature("feature-2.feature", "@tag2 @tag2\nFeature: Feature 2")
21
- lists_features = ListsFeatures.new("application-features")
21
+ lists_features = ListsFeatures.new
22
22
 
23
23
  CountsTags.new(lists_features).count_tags.should == {
24
24
  "@tag1" => 1,
@@ -29,7 +29,7 @@ module Wally
29
29
  it "counts scenario tags" do
30
30
  create_feature("feature-1.feature", "Feature: Feature 1\n@tag1@tag1\nScenario: Scenario 1")
31
31
  create_feature("feature-2.feature", "Feature: Feature 2\n@tag3@tag1\nScenario: Scenario 1")
32
- lists_features = ListsFeatures.new("application-features")
32
+ lists_features = ListsFeatures.new
33
33
  CountsTags.new(lists_features).count_tags.should == {
34
34
  "@tag1" => 3,
35
35
  "@tag3" => 1
@@ -40,7 +40,7 @@ module Wally
40
40
  create_feature("feature-1.feature", "@tag1\nFeature: Feature 1")
41
41
  create_feature("feature-2.feature", "@TAG1\nFeature: Feature 2")
42
42
  create_feature("feature-3.feature", "Feature: Feature 2\n@TAG1\nScenario: Scenario 1")
43
- lists_features = ListsFeatures.new("application-features")
43
+ lists_features = ListsFeatures.new
44
44
 
45
45
  CountsTags.new(lists_features).count_tags.should == {
46
46
  "@tag1" => 3
@@ -18,7 +18,7 @@ module Wally
18
18
  create_feature("1-sample.feature", "Feature: Zorro")
19
19
  create_feature("2-sample.feature", "Feature: Malgor")
20
20
  create_feature("3-sample.feature", "Feature: Adrian")
21
- lists_features = ListsFeatures.new("application-features")
21
+ lists_features = ListsFeatures.new
22
22
  lists_features.features.size.should == 3
23
23
  lists_features.features[0]["name"].should == "Adrian"
24
24
  lists_features.features[1]["name"].should == "Malgor"
@@ -14,7 +14,7 @@ module Wally
14
14
  end
15
15
 
16
16
  let :lists_features do
17
- ListsFeatures.new("application-features")
17
+ ListsFeatures.new
18
18
  end
19
19
 
20
20
  it "finds features containing text" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wally
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-29 00:00:00.000000000Z
12
+ date: 2011-11-30 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
16
- requirement: &70120593743760 !ruby/object:Gem::Requirement
16
+ requirement: &70144712321920 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70120593743760
24
+ version_requirements: *70144712321920
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: haml
27
- requirement: &70120593742980 !ruby/object:Gem::Requirement
27
+ requirement: &70144712318380 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70120593742980
35
+ version_requirements: *70144712318380
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rdiscount
38
- requirement: &70120593742220 !ruby/object:Gem::Requirement
38
+ requirement: &70144712317720 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70120593742220
46
+ version_requirements: *70144712317720
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: gherkin
49
- requirement: &70120593740720 !ruby/object:Gem::Requirement
49
+ requirement: &70144712317020 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70120593740720
57
+ version_requirements: *70144712317020
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: komainu
60
- requirement: &70120593738600 !ruby/object:Gem::Requirement
60
+ requirement: &70144712316380 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70120593738600
68
+ version_requirements: *70144712316380
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mongoid
71
- requirement: &70120593737640 !ruby/object:Gem::Requirement
71
+ requirement: &70144712315760 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70120593737640
79
+ version_requirements: *70144712315760
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: bson_ext
82
- requirement: &70120593724840 !ruby/object:Gem::Requirement
82
+ requirement: &70144712314860 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70120593724840
90
+ version_requirements: *70144712314860
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: cucumber
93
- requirement: &70120593724080 !ruby/object:Gem::Requirement
93
+ requirement: &70144712314000 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70120593724080
101
+ version_requirements: *70144712314000
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: capybara
104
- requirement: &70120593723500 !ruby/object:Gem::Requirement
104
+ requirement: &70144712312980 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70120593723500
112
+ version_requirements: *70144712312980
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: rspec
115
- requirement: &70120593720420 !ruby/object:Gem::Requirement
115
+ requirement: &70144712311920 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70120593720420
123
+ version_requirements: *70144712311920
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: fakefs
126
- requirement: &70120593719720 !ruby/object:Gem::Requirement
126
+ requirement: &70144712311160 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70120593719720
134
+ version_requirements: *70144712311160
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: launchy
137
- requirement: &70120593718800 !ruby/object:Gem::Requirement
137
+ requirement: &70144712305800 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,7 +142,7 @@ dependencies:
142
142
  version: '0'
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *70120593718800
145
+ version_requirements: *70144712305800
146
146
  description: ''
147
147
  email:
148
148
  - andrew.vos@gmail.com
@@ -163,11 +163,12 @@ files:
163
163
  - example-features/generic/has-lots-of-tags.feature
164
164
  - example-features/generic/multiple-scenarios.feature
165
165
  - example-features/too-many-wip-tags/too-many-wip-tags.feature
166
- - features/browse_features.feature
167
166
  - features/counts.feature
167
+ - features/home_page.feature
168
168
  - features/list_tags.feature
169
169
  - features/notifications.feature
170
170
  - features/push_features.feature
171
+ - features/scenario_page.feature
171
172
  - features/search_features.feature
172
173
  - features/step_definitions/browse_features_steps.rb
173
174
  - features/step_definitions/notifications_steps.rb
@@ -224,11 +225,12 @@ signing_key:
224
225
  specification_version: 3
225
226
  summary: ''
226
227
  test_files:
227
- - features/browse_features.feature
228
228
  - features/counts.feature
229
+ - features/home_page.feature
229
230
  - features/list_tags.feature
230
231
  - features/notifications.feature
231
232
  - features/push_features.feature
233
+ - features/scenario_page.feature
232
234
  - features/search_features.feature
233
235
  - features/step_definitions/browse_features_steps.rb
234
236
  - features/step_definitions/notifications_steps.rb
@@ -1,136 +0,0 @@
1
- Feature: Browse Features
2
- In order to simply view project requirements
3
- As a stakeholder
4
- I want a web based feature viewer and navigator
5
-
6
- Scenario: Links to features in alphabetical order
7
- Given a feature file named "kate_moss.feature" with the contents:
8
- """
9
- Feature: Kate Moss
10
- """
11
- Given a feature file named "katie_price.feature" with the contents:
12
- """
13
- Feature: Katie Price
14
- """
15
- Given a feature file named "jessica_jane_clement.feature" with the contents:
16
- """
17
- Feature: Jessica-Jane Clement
18
- """
19
- Given a feature file named "elle_macpherson.feature" with the contents:
20
- """
21
- Feature: Elle Macpherson
22
- """
23
- When I visit the home page
24
- Then I should see a link to my sample features
25
- And the features are ordered alphabetically
26
-
27
- Scenario: Display feature tags
28
- Given a feature file named "sample.feature" with the contents:
29
- """
30
- @sample_tag
31
- Feature: Sample Feature
32
- """
33
- When I visit the sample feature page
34
- Then I should see "sample_tag"
35
-
36
- Scenario: Feature Content
37
- Given a feature file named "sample.feature" with the contents:
38
- """
39
- Feature: Sample Feature
40
- In order to get some value
41
- As a person
42
- I want to create value
43
- """
44
- When I visit the sample feature page
45
- Then I should see the feature free-form narrative
46
-
47
- Scenario: View Scenario Links
48
- Given a feature file named "sample.feature" with the contents:
49
- """
50
- Feature: Sample Feature
51
- In order to get some value
52
- As a person
53
- I want to create value
54
-
55
- Scenario: Sample Aidy
56
- Given my name is "Aidy"
57
- When I drink alcohol
58
- Then I go nuts
59
-
60
- Scenario: Sample Andrew
61
- Given my name is 'Andrew'
62
- When I drink alcohol
63
- Then I go happy
64
- """
65
- When I visit the sample feature page
66
- Then I should see Scenario headers as links
67
-
68
- Scenario: View Scenario Content
69
- Given a feature file named "sample.feature" with the contents:
70
- """
71
- Feature: Sample Feature
72
-
73
- @tag1 @tag2
74
- Scenario: Sample Aidy
75
- Given my name is "Aidy"
76
- When I drink alcohol
77
- Then I go nuts
78
- """
79
- When I visit the sample feature page
80
- And click on a scenario header link
81
- Then a page appears with the scenario content
82
- And I should see "tag1"
83
- And I should see "tag2"
84
-
85
- Scenario: View Scenario Tags On Scenario Page
86
- Given a feature file named "sample.feature" with the contents:
87
- """
88
- Feature: Sample Feature
89
-
90
- @tag1 @tag2
91
- Scenario: Sample Aidy
92
- """
93
- When I visit the sample feature page
94
- Then I should see "tag1"
95
- And I should see "tag2"
96
-
97
- Scenario: View Scenario Background
98
- Given a feature file named "sample.feature" with the contents:
99
- """
100
- Feature: Sample Feature
101
-
102
- Background:
103
- Given some things
104
-
105
- Scenario: Sample Aidy
106
- """
107
- When I visit the sample feature page
108
- And click on a scenario header link
109
- Then the background is visible
110
-
111
- Scenario: View Scenario Tags
112
- Given a feature file named "sample.feature" with the contents:
113
- """
114
- Feature: Sample Feature
115
-
116
- Background:
117
- Given some things
118
-
119
- @work_in_progress
120
- Scenario: Sample Aidy
121
- """
122
- When I visit the sample feature page
123
- And click on a scenario header link
124
- Then I should see "work_in_progress"
125
-
126
- Scenario: Sort Scenario Links in Alphabetical Order
127
- Given a feature file named "sample.feature" with the contents:
128
- """
129
- Feature: Sample Feature
130
- Scenario: V
131
- Scenario: C
132
- Scenario: I
133
- Scenario: N
134
- """
135
- When I visit the sample feature page
136
- Then the scenario links are sorted