cucumber-rails 0.3.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. data/.gitignore +1 -0
  2. data/.rspec +1 -0
  3. data/.rvmrc +1 -0
  4. data/Gemfile +2 -0
  5. data/Gemfile.lock +194 -0
  6. data/History.txt +101 -1
  7. data/LICENSE +22 -0
  8. data/README.md +77 -0
  9. data/Rakefile +3 -19
  10. data/config/cucumber.yml +1 -0
  11. data/cucumber-rails.gemspec +37 -101
  12. data/dev_tasks/cucumber.rake +1 -1
  13. data/dev_tasks/rspec.rake +6 -11
  14. data/features/allow_rescue.feature +63 -0
  15. data/features/capybara_javascript_drivers.feature +87 -0
  16. data/features/database_cleaner.feature +44 -0
  17. data/features/emulate_javascript.feature +34 -0
  18. data/features/inspect_query_string.feature +37 -0
  19. data/features/install_cucumber_rails.feature +16 -0
  20. data/features/mongoid.feature +53 -0
  21. data/features/multiple_databases.feature +74 -0
  22. data/features/named_selectors.feature +33 -0
  23. data/features/no_database.feature +70 -0
  24. data/features/pseduo_class_selectors.feature +24 -0
  25. data/features/rerun_profile.feature +38 -0
  26. data/features/rest_api.feature +47 -0
  27. data/features/routing.feature +18 -0
  28. data/features/select_dates.feature +99 -0
  29. data/features/step_definitions/cucumber_rails_steps.rb +80 -6
  30. data/features/support/env.rb +8 -2
  31. data/features/test_unit.feature +43 -0
  32. data/lib/cucumber/rails/capybara/javascript_emulation.rb +83 -0
  33. data/lib/cucumber/rails/capybara/select_dates_and_times.rb +50 -0
  34. data/lib/cucumber/rails/capybara.rb +6 -0
  35. data/lib/cucumber/rails/hooks/active_record.rb +14 -0
  36. data/lib/cucumber/rails/hooks/allow_rescue.rb +8 -0
  37. data/lib/cucumber/rails/hooks/database_cleaner.rb +13 -0
  38. data/lib/cucumber/rails/hooks/mail.rb +5 -0
  39. data/lib/cucumber/rails/hooks.rb +4 -0
  40. data/lib/cucumber/rails/rspec.rb +4 -6
  41. data/lib/cucumber/rails/world.rb +13 -35
  42. data/lib/cucumber/rails.rb +8 -0
  43. data/lib/cucumber/rails3/action_controller.rb +12 -0
  44. data/lib/cucumber/rails3/active_record.rb +8 -0
  45. data/lib/cucumber/rails3/application.rb +17 -0
  46. data/lib/cucumber/rails3.rb +16 -0
  47. data/lib/cucumber/web/tableish.rb +50 -9
  48. data/lib/generators/cucumber/feature/feature_generator.rb +8 -17
  49. data/lib/generators/cucumber/feature/named_arg.rb +2 -0
  50. data/{templates/feature → lib/generators/cucumber/feature/templates}/feature.erb +10 -12
  51. data/{templates/feature → lib/generators/cucumber/feature/templates}/steps.erb +1 -1
  52. data/lib/generators/cucumber/install/USAGE +15 -0
  53. data/lib/generators/cucumber/install/install_generator.rb +88 -0
  54. data/lib/generators/cucumber/install/templates/config/cucumber.yml.erb +8 -0
  55. data/lib/generators/cucumber/install/templates/step_definitions/web_steps.rb.erb +192 -0
  56. data/lib/generators/cucumber/install/templates/step_definitions/web_steps_cs.rb.erb +127 -0
  57. data/lib/generators/cucumber/install/templates/step_definitions/web_steps_da.rb.erb +105 -0
  58. data/lib/generators/cucumber/install/templates/step_definitions/web_steps_de.rb.erb +127 -0
  59. data/lib/generators/cucumber/install/templates/step_definitions/web_steps_es.rb.erb +127 -0
  60. data/lib/generators/cucumber/install/templates/step_definitions/web_steps_ja.rb.erb +140 -0
  61. data/lib/generators/cucumber/install/templates/step_definitions/web_steps_ko.rb.erb +142 -0
  62. data/lib/generators/cucumber/install/templates/step_definitions/web_steps_no.rb.erb +105 -0
  63. data/lib/generators/cucumber/install/templates/step_definitions/web_steps_pt-BR.rb.erb +132 -0
  64. data/lib/generators/cucumber/install/templates/support/_rails_each_run.rb.erb +36 -0
  65. data/lib/generators/cucumber/install/templates/support/_rails_prefork.rb.erb +1 -0
  66. data/{templates/skeleton → lib/generators/cucumber/install/templates}/support/capybara.rb +0 -4
  67. data/{templates/skeleton → lib/generators/cucumber/install/templates}/support/paths.rb +11 -5
  68. data/{templates/skeleton → lib/generators/cucumber/install/templates}/support/rails.rb.erb +2 -2
  69. data/{templates/skeleton → lib/generators/cucumber/install/templates}/support/rails_spork.rb.erb +2 -2
  70. data/lib/generators/cucumber/install/templates/support/selectors.rb +39 -0
  71. data/lib/generators/cucumber/install/templates/support/web_steps_warning.txt +19 -0
  72. data/{templates/skeleton → lib/generators/cucumber/install/templates}/tasks/cucumber.rake.erb +18 -0
  73. data/spec/cucumber/web/tableish_spec.rb +83 -6
  74. data/spec/spec_helper.rb +1 -4
  75. metadata +299 -73
  76. data/HACKING.rdoc +0 -34
  77. data/README.rdoc +0 -64
  78. data/VERSION +0 -1
  79. data/features/rails2.feature +0 -56
  80. data/features/rails3.feature +0 -52
  81. data/features/support/matchers/files.rb +0 -17
  82. data/generators/cucumber/USAGE +0 -14
  83. data/generators/cucumber/cucumber_generator.rb +0 -89
  84. data/generators/cucumber/templates/step_definitions/web_steps_ja.rb.erb +0 -136
  85. data/generators/feature/USAGE +0 -12
  86. data/generators/feature/feature_generator.rb +0 -47
  87. data/lib/cucumber/rails/action_controller.rb +0 -65
  88. data/lib/cucumber/rails/active_record.rb +0 -34
  89. data/lib/cucumber/rails/capybara_javascript_emulation.rb +0 -72
  90. data/lib/cucumber/rails/test_unit.rb +0 -9
  91. data/lib/generators/cucumber/feature/feature_base.rb +0 -29
  92. data/lib/generators/cucumber/skeleton/USAGE +0 -21
  93. data/lib/generators/cucumber/skeleton/skeleton_base.rb +0 -202
  94. data/lib/generators/cucumber/skeleton/skeleton_generator.rb +0 -64
  95. data/rvm.yml +0 -22
  96. data/spec/generators/cucumber/skeleton/skeleton_base_spec.rb +0 -84
  97. data/spec/spec.opts +0 -2
  98. data/templates/skeleton/config/cucumber.yml.erb +0 -7
  99. data/templates/skeleton/environments/cucumber.rb.erb +0 -37
  100. data/templates/skeleton/step_definitions/capybara_steps.rb.erb +0 -197
  101. data/templates/skeleton/step_definitions/web_steps_cs.rb.erb +0 -136
  102. data/templates/skeleton/step_definitions/web_steps_da.rb.erb +0 -114
  103. data/templates/skeleton/step_definitions/web_steps_de.rb.erb +0 -136
  104. data/templates/skeleton/step_definitions/web_steps_es.rb.erb +0 -136
  105. data/templates/skeleton/step_definitions/web_steps_no.rb.erb +0 -114
  106. data/templates/skeleton/step_definitions/web_steps_pt-BR.rb.erb +0 -140
  107. data/templates/skeleton/step_definitions/webrat_steps.rb.erb +0 -268
  108. data/templates/skeleton/support/_rails_each_run.rb +0 -34
  109. data/templates/skeleton/support/_rails_prefork.rb.erb +0 -10
  110. data/templates/skeleton/support/webrat.rb +0 -8
  111. /data/{templates/skeleton → lib/generators/cucumber/install/templates}/script/cucumber +0 -0
  112. /data/{templates/skeleton → lib/generators/cucumber/install/templates}/support/edit_warning.txt +0 -0
metadata CHANGED
@@ -1,52 +1,239 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-rails
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 3
8
- - 0
9
- version: 0.3.0
4
+ prerelease:
5
+ version: 1.0.0
10
6
  platform: ruby
11
7
  authors:
12
- - "Dennis Bl\xC3\xB6te"
13
8
  - "Aslak Helles\xC3\xB8y"
9
+ - "Dennis Bl\xC3\xB6te"
14
10
  - Rob Holland
15
11
  autorequire:
16
12
  bindir: bin
17
13
  cert_chain: []
18
14
 
19
- date: 2010-02-26 00:00:00 +01:00
20
- default_executable:
15
+ date: 2011-06-20 00:00:00 Z
21
16
  dependencies:
22
17
  - !ruby/object:Gem::Dependency
23
18
  name: cucumber
24
- prerelease: false
25
19
  requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
26
21
  requirements:
27
- - - ">="
22
+ - - ~>
28
23
  - !ruby/object:Gem::Version
29
- segments:
30
- - 0
31
- - 6
32
- - 2
33
- version: 0.6.2
24
+ version: 1.0.0
34
25
  type: :runtime
26
+ prerelease: false
35
27
  version_requirements: *id001
28
+ - !ruby/object:Gem::Dependency
29
+ name: rack-test
30
+ requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: 0.5.7
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: *id002
39
+ - !ruby/object:Gem::Dependency
40
+ name: nokogiri
41
+ requirement: &id003 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 1.4.4
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: *id003
50
+ - !ruby/object:Gem::Dependency
51
+ name: capybara
52
+ requirement: &id004 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: 1.0.0
58
+ type: :runtime
59
+ prerelease: false
60
+ version_requirements: *id004
61
+ - !ruby/object:Gem::Dependency
62
+ name: rails
63
+ requirement: &id005 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 3.1.0.rc4
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: *id005
72
+ - !ruby/object:Gem::Dependency
73
+ name: rake
74
+ requirement: &id006 !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: 0.9.2
80
+ type: :development
81
+ prerelease: false
82
+ version_requirements: *id006
83
+ - !ruby/object:Gem::Dependency
84
+ name: bundler
85
+ requirement: &id007 !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 1.0.15
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: *id007
36
94
  - !ruby/object:Gem::Dependency
37
95
  name: aruba
96
+ requirement: &id008 !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: 0.4.1
102
+ type: :development
38
103
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
104
+ version_requirements: *id008
105
+ - !ruby/object:Gem::Dependency
106
+ name: sqlite3-ruby
107
+ requirement: &id009 !ruby/object:Gem::Requirement
108
+ none: false
40
109
  requirements:
41
110
  - - ">="
42
111
  - !ruby/object:Gem::Version
43
- segments:
44
- - 0
45
- - 1
46
- - 5
47
- version: 0.1.5
112
+ version: 1.3.3
48
113
  type: :development
49
- version_requirements: *id002
114
+ prerelease: false
115
+ version_requirements: *id009
116
+ - !ruby/object:Gem::Dependency
117
+ name: rspec
118
+ requirement: &id010 !ruby/object:Gem::Requirement
119
+ none: false
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: 2.6.0
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: *id010
127
+ - !ruby/object:Gem::Dependency
128
+ name: rspec-rails
129
+ requirement: &id011 !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: 2.6.1
135
+ type: :development
136
+ prerelease: false
137
+ version_requirements: *id011
138
+ - !ruby/object:Gem::Dependency
139
+ name: factory_girl
140
+ requirement: &id012 !ruby/object:Gem::Requirement
141
+ none: false
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: 2.0.0.beta2
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: *id012
149
+ - !ruby/object:Gem::Dependency
150
+ name: database_cleaner
151
+ requirement: &id013 !ruby/object:Gem::Requirement
152
+ none: false
153
+ requirements:
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: 0.6.7
157
+ type: :development
158
+ prerelease: false
159
+ version_requirements: *id013
160
+ - !ruby/object:Gem::Dependency
161
+ name: mongoid
162
+ requirement: &id014 !ruby/object:Gem::Requirement
163
+ none: false
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: 2.0.2
168
+ type: :development
169
+ prerelease: false
170
+ version_requirements: *id014
171
+ - !ruby/object:Gem::Dependency
172
+ name: bson_ext
173
+ requirement: &id015 !ruby/object:Gem::Requirement
174
+ none: false
175
+ requirements:
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ version: 1.3.1
179
+ type: :development
180
+ prerelease: false
181
+ version_requirements: *id015
182
+ - !ruby/object:Gem::Dependency
183
+ name: turn
184
+ requirement: &id016 !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ version: 0.8.2
190
+ type: :development
191
+ prerelease: false
192
+ version_requirements: *id016
193
+ - !ruby/object:Gem::Dependency
194
+ name: sass
195
+ requirement: &id017 !ruby/object:Gem::Requirement
196
+ none: false
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: 3.1.1
201
+ type: :development
202
+ prerelease: false
203
+ version_requirements: *id017
204
+ - !ruby/object:Gem::Dependency
205
+ name: coffee-script
206
+ requirement: &id018 !ruby/object:Gem::Requirement
207
+ none: false
208
+ requirements:
209
+ - - ">="
210
+ - !ruby/object:Gem::Version
211
+ version: 2.2.0
212
+ type: :development
213
+ prerelease: false
214
+ version_requirements: *id018
215
+ - !ruby/object:Gem::Dependency
216
+ name: uglifier
217
+ requirement: &id019 !ruby/object:Gem::Requirement
218
+ none: false
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: 0.5.4
223
+ type: :development
224
+ prerelease: false
225
+ version_requirements: *id019
226
+ - !ruby/object:Gem::Dependency
227
+ name: jquery-rails
228
+ requirement: &id020 !ruby/object:Gem::Requirement
229
+ none: false
230
+ requirements:
231
+ - - ">="
232
+ - !ruby/object:Gem::Version
233
+ version: 1.0.9
234
+ type: :development
235
+ prerelease: false
236
+ version_requirements: *id020
50
237
  description: Cucumber Generators and Runtime for Rails
51
238
  email: cukes@googlegroups.com
52
239
  executables: []
@@ -54,71 +241,89 @@ executables: []
54
241
  extensions: []
55
242
 
56
243
  extra_rdoc_files:
57
- - README.rdoc
244
+ - LICENSE
245
+ - README.md
246
+ - History.txt
58
247
  files:
59
248
  - .gitignore
60
- - HACKING.rdoc
249
+ - .rspec
250
+ - .rvmrc
251
+ - Gemfile
252
+ - Gemfile.lock
61
253
  - History.txt
62
- - README.rdoc
254
+ - LICENSE
255
+ - README.md
63
256
  - Rakefile
64
- - VERSION
65
257
  - config/.gitignore
258
+ - config/cucumber.yml
66
259
  - cucumber-rails.gemspec
67
260
  - dev_tasks/cucumber.rake
68
261
  - dev_tasks/rspec.rake
69
- - features/rails2.feature
70
- - features/rails3.feature
262
+ - features/allow_rescue.feature
263
+ - features/capybara_javascript_drivers.feature
264
+ - features/database_cleaner.feature
265
+ - features/emulate_javascript.feature
266
+ - features/inspect_query_string.feature
267
+ - features/install_cucumber_rails.feature
268
+ - features/mongoid.feature
269
+ - features/multiple_databases.feature
270
+ - features/named_selectors.feature
271
+ - features/no_database.feature
272
+ - features/pseduo_class_selectors.feature
273
+ - features/rerun_profile.feature
274
+ - features/rest_api.feature
275
+ - features/routing.feature
276
+ - features/select_dates.feature
71
277
  - features/step_definitions/cucumber_rails_steps.rb
72
278
  - features/support/env.rb
73
- - features/support/matchers/files.rb
74
- - generators/cucumber/USAGE
75
- - generators/cucumber/cucumber_generator.rb
76
- - generators/cucumber/templates/step_definitions/web_steps_ja.rb.erb
77
- - generators/feature/USAGE
78
- - generators/feature/feature_generator.rb
79
- - lib/cucumber/rails/action_controller.rb
80
- - lib/cucumber/rails/active_record.rb
81
- - lib/cucumber/rails/capybara_javascript_emulation.rb
279
+ - features/test_unit.feature
280
+ - lib/cucumber/rails.rb
281
+ - lib/cucumber/rails/capybara.rb
282
+ - lib/cucumber/rails/capybara/javascript_emulation.rb
283
+ - lib/cucumber/rails/capybara/select_dates_and_times.rb
284
+ - lib/cucumber/rails/hooks.rb
285
+ - lib/cucumber/rails/hooks/active_record.rb
286
+ - lib/cucumber/rails/hooks/allow_rescue.rb
287
+ - lib/cucumber/rails/hooks/database_cleaner.rb
288
+ - lib/cucumber/rails/hooks/mail.rb
82
289
  - lib/cucumber/rails/rspec.rb
83
- - lib/cucumber/rails/test_unit.rb
84
290
  - lib/cucumber/rails/world.rb
291
+ - lib/cucumber/rails3.rb
292
+ - lib/cucumber/rails3/action_controller.rb
293
+ - lib/cucumber/rails3/active_record.rb
294
+ - lib/cucumber/rails3/application.rb
85
295
  - lib/cucumber/web/tableish.rb
86
296
  - lib/generators/cucumber/feature/USAGE
87
- - lib/generators/cucumber/feature/feature_base.rb
88
297
  - lib/generators/cucumber/feature/feature_generator.rb
89
298
  - lib/generators/cucumber/feature/named_arg.rb
90
- - lib/generators/cucumber/skeleton/USAGE
91
- - lib/generators/cucumber/skeleton/skeleton_base.rb
92
- - lib/generators/cucumber/skeleton/skeleton_generator.rb
93
- - rvm.yml
299
+ - lib/generators/cucumber/feature/templates/feature.erb
300
+ - lib/generators/cucumber/feature/templates/steps.erb
301
+ - lib/generators/cucumber/install/USAGE
302
+ - lib/generators/cucumber/install/install_generator.rb
303
+ - lib/generators/cucumber/install/templates/config/cucumber.yml.erb
304
+ - lib/generators/cucumber/install/templates/script/cucumber
305
+ - lib/generators/cucumber/install/templates/step_definitions/web_steps.rb.erb
306
+ - lib/generators/cucumber/install/templates/step_definitions/web_steps_cs.rb.erb
307
+ - lib/generators/cucumber/install/templates/step_definitions/web_steps_da.rb.erb
308
+ - lib/generators/cucumber/install/templates/step_definitions/web_steps_de.rb.erb
309
+ - lib/generators/cucumber/install/templates/step_definitions/web_steps_es.rb.erb
310
+ - lib/generators/cucumber/install/templates/step_definitions/web_steps_ja.rb.erb
311
+ - lib/generators/cucumber/install/templates/step_definitions/web_steps_ko.rb.erb
312
+ - lib/generators/cucumber/install/templates/step_definitions/web_steps_no.rb.erb
313
+ - lib/generators/cucumber/install/templates/step_definitions/web_steps_pt-BR.rb.erb
314
+ - lib/generators/cucumber/install/templates/support/_rails_each_run.rb.erb
315
+ - lib/generators/cucumber/install/templates/support/_rails_prefork.rb.erb
316
+ - lib/generators/cucumber/install/templates/support/capybara.rb
317
+ - lib/generators/cucumber/install/templates/support/edit_warning.txt
318
+ - lib/generators/cucumber/install/templates/support/paths.rb
319
+ - lib/generators/cucumber/install/templates/support/rails.rb.erb
320
+ - lib/generators/cucumber/install/templates/support/rails_spork.rb.erb
321
+ - lib/generators/cucumber/install/templates/support/selectors.rb
322
+ - lib/generators/cucumber/install/templates/support/web_steps_warning.txt
323
+ - lib/generators/cucumber/install/templates/tasks/cucumber.rake.erb
94
324
  - spec/cucumber/web/tableish_spec.rb
95
- - spec/generators/cucumber/skeleton/skeleton_base_spec.rb
96
- - spec/spec.opts
97
325
  - spec/spec_helper.rb
98
- - templates/feature/feature.erb
99
- - templates/feature/steps.erb
100
- - templates/skeleton/config/cucumber.yml.erb
101
- - templates/skeleton/environments/cucumber.rb.erb
102
- - templates/skeleton/script/cucumber
103
- - templates/skeleton/step_definitions/capybara_steps.rb.erb
104
- - templates/skeleton/step_definitions/web_steps_cs.rb.erb
105
- - templates/skeleton/step_definitions/web_steps_da.rb.erb
106
- - templates/skeleton/step_definitions/web_steps_de.rb.erb
107
- - templates/skeleton/step_definitions/web_steps_es.rb.erb
108
- - templates/skeleton/step_definitions/web_steps_no.rb.erb
109
- - templates/skeleton/step_definitions/web_steps_pt-BR.rb.erb
110
- - templates/skeleton/step_definitions/webrat_steps.rb.erb
111
- - templates/skeleton/support/_rails_each_run.rb
112
- - templates/skeleton/support/_rails_prefork.rb.erb
113
- - templates/skeleton/support/capybara.rb
114
- - templates/skeleton/support/edit_warning.txt
115
- - templates/skeleton/support/paths.rb
116
- - templates/skeleton/support/rails.rb.erb
117
- - templates/skeleton/support/rails_spork.rb.erb
118
- - templates/skeleton/support/webrat.rb
119
- - templates/skeleton/tasks/cucumber.rake.erb
120
- has_rdoc: true
121
- homepage: http://github.com/aslakhellesoy/cucumber-rails
326
+ homepage: http://cukes.info
122
327
  licenses: []
123
328
 
124
329
  post_install_message:
@@ -127,27 +332,48 @@ rdoc_options:
127
332
  require_paths:
128
333
  - lib
129
334
  required_ruby_version: !ruby/object:Gem::Requirement
335
+ none: false
130
336
  requirements:
131
337
  - - ">="
132
338
  - !ruby/object:Gem::Version
339
+ hash: -421986760782023532
133
340
  segments:
134
341
  - 0
135
342
  version: "0"
136
343
  required_rubygems_version: !ruby/object:Gem::Requirement
344
+ none: false
137
345
  requirements:
138
346
  - - ">="
139
347
  - !ruby/object:Gem::Version
348
+ hash: -421986760782023532
140
349
  segments:
141
350
  - 0
142
351
  version: "0"
143
352
  requirements: []
144
353
 
145
354
  rubyforge_project:
146
- rubygems_version: 1.3.6
355
+ rubygems_version: 1.8.5
147
356
  signing_key:
148
357
  specification_version: 3
149
- summary: Cucumber Generators and Runtime for Rails
358
+ summary: cucumber-rails-1.0.0
150
359
  test_files:
360
+ - features/allow_rescue.feature
361
+ - features/capybara_javascript_drivers.feature
362
+ - features/database_cleaner.feature
363
+ - features/emulate_javascript.feature
364
+ - features/inspect_query_string.feature
365
+ - features/install_cucumber_rails.feature
366
+ - features/mongoid.feature
367
+ - features/multiple_databases.feature
368
+ - features/named_selectors.feature
369
+ - features/no_database.feature
370
+ - features/pseduo_class_selectors.feature
371
+ - features/rerun_profile.feature
372
+ - features/rest_api.feature
373
+ - features/routing.feature
374
+ - features/select_dates.feature
375
+ - features/step_definitions/cucumber_rails_steps.rb
376
+ - features/support/env.rb
377
+ - features/test_unit.feature
151
378
  - spec/cucumber/web/tableish_spec.rb
152
- - spec/generators/cucumber/skeleton/skeleton_base_spec.rb
153
379
  - spec/spec_helper.rb
data/HACKING.rdoc DELETED
@@ -1,34 +0,0 @@
1
- = Hacking on Cucumber-Rails
2
-
3
- If you have a bugfix or a new feature you want to contribute, please fork on Github and make your own feature branch:
4
-
5
- git clone git@github.com:you/cucumber-rails.git
6
- git checkout -b 87-add-chinese-translation
7
-
8
- The feature branch should contain a ticket number (if appliccable) and a descriptive name that aligns with the ticket name.
9
-
10
- == Setting up your environment
11
-
12
- Before you change anything, you should make sure you can run all the Cucumber features for Cucumber-Rails.
13
- The first time you clone the repo you may have to install Rails for all of the Ruby versions we're testing against.
14
- For this you need RVM:
15
-
16
- === Installing rubies with RVM
17
-
18
- sudo gem install rvm
19
- rvm install 1.8.7 1.9.1
20
-
21
- === Installing gems
22
-
23
- In order to avoid conflicts we'll use RVM's gem sets to set up a gem set for each combination of Ruby version and Rails version
24
- to be tested against. Open platforms.yml and modify the rubies section if you have different patchlevels for the rubies.
25
-
26
- Installing the various gem sets is done with the following command:
27
-
28
- rake gemsets:install
29
-
30
- This will take 10-15 minutes to complete, as there are many gems to download. After you have done this once you shouldn't have
31
- to do it again (unless future versions require new gems).
32
-
33
- == Gotchas
34
- * https://rails.lighthouseapp.com/projects/8994/tickets/3865-invalid-gemspec-format-in-and-already-initialized-constant-warnings-with-ruby-192dev
data/README.rdoc DELETED
@@ -1,64 +0,0 @@
1
- = Cucumber-Rails
2
-
3
- Cucumber-Rails brings Cucumber to Rails2 and Rails3. It contains 2 generators - one
4
- for bootstrapping your Rails app for Cucumber, and a second one for generating features.
5
-
6
- Cucumber-Rails also contains Cucumber Step Definitions that wrap Capybara or Webrat,
7
- giving you a head start for writing Cucumber features against your Rails app.
8
-
9
- == Installation
10
-
11
- === Rails 3:
12
-
13
- Before you can use the generator, add the necessary gems to your project's Gemfile as follows:
14
-
15
- gem 'capybara'
16
- gem 'database_cleaner'
17
- gem 'cucumber-rails'
18
-
19
- Or if you prefer the latest and greatest:
20
-
21
- gem 'capybara', :git => 'git://github.com/jnicklas/capybara.git'
22
- gem 'database_cleaner', :git => 'git://github.com/bmabey/database_cleaner.git'
23
- gem 'cucumber-rails', :git => 'git://github.com/aslakhellesoy/cucumber-rails3.git'
24
-
25
- Then install the gems by running:
26
-
27
- bundle install
28
-
29
- Finally, bootstrap your Rails app by running:
30
-
31
- ruby script/rails generate cucumber:skeleton
32
-
33
- === Rails 2.x:
34
-
35
- Before you can use the generator, install the gem by running:
36
-
37
- gem install cucumber-rails
38
-
39
- Finally, bootstrap your Rails app by running:
40
-
41
- script/generate cucumber
42
-
43
- == Generating a Cucumber feature
44
-
45
- IMPORTANT: Only do this if you are new to Cucumber. We recommend you write your
46
- Cucumber features by hand once you get the hang of it.
47
-
48
- === Rails 3:
49
-
50
- Example:
51
-
52
- ruby script/rails generate cucumber:feature post title:string body:text published:boolean
53
- ruby script/rails generate scaffold post title:string body:text published:boolean
54
- rake db:migrate
55
- rake cucumber
56
-
57
- === Rails 2:
58
-
59
- Example:
60
-
61
- ruby script/generate feature post title:string body:text published:boolean
62
- ruby script/generate scaffold post title:string body:text published:boolean
63
- rake db:migrate
64
- rake cucumber
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.3.0
@@ -1,56 +0,0 @@
1
- Feature: Rails 2
2
- In order to take over the world
3
- Cucumber-Rails should work on major versions
4
- of Rails2 and Ruby, with Capybara, Webrat, Spork and DatabaseCleaner
5
-
6
- Scenario Outline: Install Cucumber-Rails
7
- Given I am using rvm "1.8.7"
8
- And I am using rvm gemset "cucumber-rails-2.3.5"
9
- When I successfully run "rails rails-2-app"
10
- Then it should pass with:
11
- """
12
- create README
13
- """
14
- And I cd to "rails-2-app"
15
- When I successfully run "ruby script/generate cucumber <args>"
16
- Then the following files should exist:
17
- | config/cucumber.yml |
18
- | config/environments/cucumber.rb |
19
- | script/cucumber |
20
- | features/step_definitions/web_steps.rb |
21
- | features/support/env.rb |
22
- | features/support/paths.rb |
23
- | lib/tasks/cucumber.rake |
24
- And the file "features/support/env.rb" should contain "<env_rb_1>"
25
- And the file "features/support/env.rb" should contain "<env_rb_2>"
26
- And the file "config/environments/cucumber.rb" should contain "<cucumber_rb_1>"
27
- And the file "config/environments/cucumber.rb" should contain "<cucumber_rb_2>"
28
- And the file "config/database.yml" should contain "cucumber:"
29
-
30
- Examples:
31
- | args | env_rb_1 | env_rb_2 | cucumber_rb_1 | cucumber_rb_2 |
32
- | --webrat --rspec | require 'cucumber/rails/rspec' | require 'webrat' | config.gem 'webrat' | config.gem 'rspec-rails' |
33
- | --capybara --testunit | require 'cucumber/rails/world' | require 'capybara/rails' | config.gem 'capybara' | config.gem 'database_cleaner' |
34
-
35
- @announce-cmd
36
- Scenario Outline: Run Cucumber
37
- Given I am using rvm "1.8.7"
38
- And I am using rvm gemset "cucumber-rails-2.3.5"
39
- And I successfully run "rails rails-2-app"
40
- And I cd to "rails-2-app"
41
- And I symlink this repo to "vendor/plugins/cucumber-rails"
42
- And I successfully run "ruby script/generate cucumber --capybara"
43
- And I successfully run "ruby script/generate feature post title:string body:text published:boolean <feature_args>"
44
- And I successfully run "ruby script/generate scaffold post title:string body:text published:boolean"
45
- And I successfully run "rake db:migrate"
46
- When I successfully run "rake cucumber"
47
- Then it should pass with:
48
- """
49
- 2 scenarios (2 passed)
50
- 11 steps (11 passed)
51
- """
52
-
53
- Examples:
54
- | feature_args |
55
- | |
56
- | --capybara culerity |
@@ -1,52 +0,0 @@
1
- @announce-cmd
2
- Feature: Rails 3
3
- In order to take over the world
4
- Cucumber-Rails should work on major versions
5
- of Rails2 and Ruby, with Capybara, Spork and DatabaseCleaner
6
-
7
- Scenario: Install Cucumber-Rails
8
- Given I am using rvm "1.8.7"
9
- And I am using rvm gemset "cucumber-rails-3.0.0.beta"
10
- When I successfully run "rails rails-3-app"
11
- Then it should pass with:
12
- """
13
- README
14
- """
15
- And I cd to "rails-3-app"
16
- And I symlink this repo to "vendor/plugins/cucumber-rails"
17
- When I successfully run "rails generate cucumber:skeleton"
18
- Then the following files should exist:
19
- | config/cucumber.yml |
20
- | script/cucumber |
21
- | features/step_definitions/web_steps.rb |
22
- | features/support/env.rb |
23
- | features/support/paths.rb |
24
- | lib/tasks/cucumber.rake |
25
- And the file "features/support/env.rb" should contain "require 'cucumber/rails/world'"
26
- And the file "features/support/env.rb" should contain "require 'capybara/rails'"
27
-
28
- Scenario: Run Cucumber
29
- Given I am using rvm "1.8.7"
30
- And I am using rvm gemset "cucumber-rails-3.0.0.beta"
31
- And I successfully run "rails rails-3-app"
32
- And I cd to "rails-3-app"
33
- And I symlink this repo to "vendor/plugins/cucumber-rails"
34
- And I successfully run "rails generate cucumber:skeleton"
35
- And I successfully run "rails generate cucumber:feature post title:string body:text published:boolean"
36
- And I successfully run "rails generate scaffold post title:string body:text published:boolean"
37
- And I append to "Gemfile" with:
38
- """
39
- gem 'cucumber'
40
- gem 'database_cleaner'
41
- gem 'capybara', :git => 'git://github.com/jnicklas/capybara.git'
42
-
43
- """
44
- And I run "bundle install"
45
- And I successfully run "rake db:migrate"
46
- And I run "rake cucumber"
47
- Then it should pass with:
48
- """
49
- 2 scenarios (2 passed)
50
- 11 steps (11 passed)
51
- """
52
-
@@ -1,17 +0,0 @@
1
- Spec::Matchers.define :have_files do |expected_files|
2
- match do |rails_app|
3
- actual_files = rails_app.files
4
- @missing_files = expected_files - actual_files
5
- @missing_files.empty?
6
- end
7
-
8
- failure_message_for_should do |expected_files|
9
- "Rails app was missing these files:\n" + @missing_files.map { |file| " #{file}" }.join("\n")
10
- end
11
- end
12
-
13
- Spec::Matchers.define :have_contents do |contents|
14
- match do |file|
15
- file.read.include?(contents)
16
- end
17
- end