spinach 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -136,6 +136,12 @@ use private methods, mix in modules or whatever!
136
136
 
137
137
  Then run your feature again running `spinach` and watch it all turn green! :)
138
138
 
139
+ By default Spinach will ignore Scenarios marked with the tag `@wip`. Those are
140
+ meant to be work in progress, scenarios that are pending while you work on
141
+ them. To explicitly run those, use the `--tags` option:
142
+
143
+ spinach --tags @wip
144
+
139
145
  ## Hook architecture
140
146
 
141
147
  Spinach provides several hooks to allow you performing certain steps before or
@@ -35,6 +35,7 @@ module Spinach
35
35
  word.gsub!(/([A-Z]+)([A-Z][a-z])/,'\1_\2')
36
36
  word.gsub!(/([a-z\\d])([A-Z])/,'\1_\2')
37
37
  word.tr!("-", "_")
38
+ word.tr!(" ", "_")
38
39
  word.downcase!
39
40
  word
40
41
  end
@@ -1,4 +1,4 @@
1
1
  module Spinach
2
2
  # Spinach version.
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
@@ -54,6 +54,10 @@ describe Spinach::Support do
54
54
  it 'accepts non string values' do
55
55
  Spinach::Support.underscore(:FeatureName).must_equal 'feature_name'
56
56
  end
57
+
58
+ it 'changes spaces to underscores' do
59
+ Spinach::Support.underscore('feature name').must_equal 'feature_name'
60
+ end
57
61
  end
58
62
 
59
63
  describe "#escape" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spinach
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,11 +12,11 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2012-04-02 00:00:00.000000000 Z
15
+ date: 2012-04-04 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: gherkin-ruby
19
- requirement: !ruby/object:Gem::Requirement
19
+ requirement: &70243741509420 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - ~>
@@ -24,15 +24,10 @@ dependencies:
24
24
  version: 0.1.0
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ~>
31
- - !ruby/object:Gem::Version
32
- version: 0.1.0
27
+ version_requirements: *70243741509420
33
28
  - !ruby/object:Gem::Dependency
34
29
  name: colorize
35
- requirement: !ruby/object:Gem::Requirement
30
+ requirement: &70243741509000 !ruby/object:Gem::Requirement
36
31
  none: false
37
32
  requirements:
38
33
  - - ! '>='
@@ -40,15 +35,10 @@ dependencies:
40
35
  version: '0'
41
36
  type: :runtime
42
37
  prerelease: false
43
- version_requirements: !ruby/object:Gem::Requirement
44
- none: false
45
- requirements:
46
- - - ! '>='
47
- - !ruby/object:Gem::Version
48
- version: '0'
38
+ version_requirements: *70243741509000
49
39
  - !ruby/object:Gem::Dependency
50
40
  name: rake
51
- requirement: !ruby/object:Gem::Requirement
41
+ requirement: &70243741508540 !ruby/object:Gem::Requirement
52
42
  none: false
53
43
  requirements:
54
44
  - - ! '>='
@@ -56,15 +46,10 @@ dependencies:
56
46
  version: '0'
57
47
  type: :development
58
48
  prerelease: false
59
- version_requirements: !ruby/object:Gem::Requirement
60
- none: false
61
- requirements:
62
- - - ! '>='
63
- - !ruby/object:Gem::Version
64
- version: '0'
49
+ version_requirements: *70243741508540
65
50
  - !ruby/object:Gem::Dependency
66
51
  name: mocha
67
- requirement: !ruby/object:Gem::Requirement
52
+ requirement: &70243741508120 !ruby/object:Gem::Requirement
68
53
  none: false
69
54
  requirements:
70
55
  - - ! '>='
@@ -72,15 +57,10 @@ dependencies:
72
57
  version: '0'
73
58
  type: :development
74
59
  prerelease: false
75
- version_requirements: !ruby/object:Gem::Requirement
76
- none: false
77
- requirements:
78
- - - ! '>='
79
- - !ruby/object:Gem::Version
80
- version: '0'
60
+ version_requirements: *70243741508120
81
61
  - !ruby/object:Gem::Dependency
82
62
  name: sinatra
83
- requirement: !ruby/object:Gem::Requirement
63
+ requirement: &70243741507700 !ruby/object:Gem::Requirement
84
64
  none: false
85
65
  requirements:
86
66
  - - ! '>='
@@ -88,15 +68,10 @@ dependencies:
88
68
  version: '0'
89
69
  type: :development
90
70
  prerelease: false
91
- version_requirements: !ruby/object:Gem::Requirement
92
- none: false
93
- requirements:
94
- - - ! '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
71
+ version_requirements: *70243741507700
97
72
  - !ruby/object:Gem::Dependency
98
73
  name: capybara
99
- requirement: !ruby/object:Gem::Requirement
74
+ requirement: &70243741523640 !ruby/object:Gem::Requirement
100
75
  none: false
101
76
  requirements:
102
77
  - - ! '>='
@@ -104,15 +79,10 @@ dependencies:
104
79
  version: '0'
105
80
  type: :development
106
81
  prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- none: false
109
- requirements:
110
- - - ! '>='
111
- - !ruby/object:Gem::Version
112
- version: '0'
82
+ version_requirements: *70243741523640
113
83
  - !ruby/object:Gem::Dependency
114
84
  name: open4
115
- requirement: !ruby/object:Gem::Requirement
85
+ requirement: &70243741523220 !ruby/object:Gem::Requirement
116
86
  none: false
117
87
  requirements:
118
88
  - - ! '>='
@@ -120,15 +90,10 @@ dependencies:
120
90
  version: '0'
121
91
  type: :development
122
92
  prerelease: false
123
- version_requirements: !ruby/object:Gem::Requirement
124
- none: false
125
- requirements:
126
- - - ! '>='
127
- - !ruby/object:Gem::Version
128
- version: '0'
93
+ version_requirements: *70243741523220
129
94
  - !ruby/object:Gem::Dependency
130
95
  name: pry
131
- requirement: !ruby/object:Gem::Requirement
96
+ requirement: &70243741522800 !ruby/object:Gem::Requirement
132
97
  none: false
133
98
  requirements:
134
99
  - - ! '>='
@@ -136,15 +101,10 @@ dependencies:
136
101
  version: '0'
137
102
  type: :development
138
103
  prerelease: false
139
- version_requirements: !ruby/object:Gem::Requirement
140
- none: false
141
- requirements:
142
- - - ! '>='
143
- - !ruby/object:Gem::Version
144
- version: '0'
104
+ version_requirements: *70243741522800
145
105
  - !ruby/object:Gem::Dependency
146
106
  name: simplecov
147
- requirement: !ruby/object:Gem::Requirement
107
+ requirement: &70243741522380 !ruby/object:Gem::Requirement
148
108
  none: false
149
109
  requirements:
150
110
  - - ! '>='
@@ -152,15 +112,10 @@ dependencies:
152
112
  version: '0'
153
113
  type: :development
154
114
  prerelease: false
155
- version_requirements: !ruby/object:Gem::Requirement
156
- none: false
157
- requirements:
158
- - - ! '>='
159
- - !ruby/object:Gem::Version
160
- version: '0'
115
+ version_requirements: *70243741522380
161
116
  - !ruby/object:Gem::Dependency
162
117
  name: rspec
163
- requirement: !ruby/object:Gem::Requirement
118
+ requirement: &70243741521960 !ruby/object:Gem::Requirement
164
119
  none: false
165
120
  requirements:
166
121
  - - ! '>='
@@ -168,15 +123,10 @@ dependencies:
168
123
  version: '0'
169
124
  type: :development
170
125
  prerelease: false
171
- version_requirements: !ruby/object:Gem::Requirement
172
- none: false
173
- requirements:
174
- - - ! '>='
175
- - !ruby/object:Gem::Version
176
- version: '0'
126
+ version_requirements: *70243741521960
177
127
  - !ruby/object:Gem::Dependency
178
128
  name: fakefs
179
- requirement: !ruby/object:Gem::Requirement
129
+ requirement: &70243741521540 !ruby/object:Gem::Requirement
180
130
  none: false
181
131
  requirements:
182
132
  - - ! '>='
@@ -184,15 +134,10 @@ dependencies:
184
134
  version: '0'
185
135
  type: :development
186
136
  prerelease: false
187
- version_requirements: !ruby/object:Gem::Requirement
188
- none: false
189
- requirements:
190
- - - ! '>='
191
- - !ruby/object:Gem::Version
192
- version: '0'
137
+ version_requirements: *70243741521540
193
138
  - !ruby/object:Gem::Dependency
194
139
  name: minitest
195
- requirement: !ruby/object:Gem::Requirement
140
+ requirement: &70243741521040 !ruby/object:Gem::Requirement
196
141
  none: false
197
142
  requirements:
198
143
  - - ~>
@@ -200,15 +145,10 @@ dependencies:
200
145
  version: '2.0'
201
146
  type: :development
202
147
  prerelease: false
203
- version_requirements: !ruby/object:Gem::Requirement
204
- none: false
205
- requirements:
206
- - - ~>
207
- - !ruby/object:Gem::Version
208
- version: '2.0'
148
+ version_requirements: *70243741521040
209
149
  - !ruby/object:Gem::Dependency
210
150
  name: turn
211
- requirement: !ruby/object:Gem::Requirement
151
+ requirement: &70243741520620 !ruby/object:Gem::Requirement
212
152
  none: false
213
153
  requirements:
214
154
  - - ! '>='
@@ -216,12 +156,7 @@ dependencies:
216
156
  version: '0'
217
157
  type: :development
218
158
  prerelease: false
219
- version_requirements: !ruby/object:Gem::Requirement
220
- none: false
221
- requirements:
222
- - - ! '>='
223
- - !ruby/object:Gem::Version
224
- version: '0'
159
+ version_requirements: *70243741520620
225
160
  description: Spinach is a BDD framework on top of gherkin
226
161
  email:
227
162
  - info@codegram.com
@@ -343,7 +278,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
343
278
  version: '0'
344
279
  requirements: []
345
280
  rubyforge_project:
346
- rubygems_version: 1.8.21
281
+ rubygems_version: 1.8.15
347
282
  signing_key:
348
283
  specification_version: 3
349
284
  summary: Spinach is a BDD framework on top of gherkin