cucumber-rails 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/.rubocop.yml +1 -0
- data/.rubocop_todo.yml +443 -0
- data/.travis.yml +22 -20
- data/Appraisals +17 -81
- data/CHANGELOG.md +68 -11
- data/CONTRIBUTING.md +12 -11
- data/LICENSE +1 -1
- data/README.md +22 -14
- data/bin/install_geckodriver.sh +19 -0
- data/bin/install_webpacker.sh +9 -0
- data/config/cucumber.yml +0 -3
- data/cucumber-rails.gemspec +10 -12
- data/features/allow_rescue.feature +8 -4
- data/features/annotations.feature +0 -1
- data/features/emulate_javascript.feature +2 -2
- data/features/install_cucumber_rails.feature +1 -1
- data/features/rest_api.feature +2 -2
- data/features/step_definitions/cucumber_rails_steps.rb +41 -25
- data/gemfiles/rails_4_2.gemfile +3 -12
- data/gemfiles/rails_5_0.gemfile +3 -11
- data/gemfiles/rails_5_1.gemfile +3 -10
- data/gemfiles/rails_5_2.gemfile +3 -10
- data/gemfiles/rails_6_0.gemfile +8 -0
- data/lib/cucumber/rails/action_controller.rb +1 -0
- data/lib/cucumber/rails/capybara/javascript_emulation.rb +3 -16
- data/lib/generators/cucumber/install/install_generator.rb +5 -1
- metadata +35 -75
- data/Gemfile.appraisal +0 -3
- data/gemfiles/rails_4_0.gemfile +0 -22
- data/gemfiles/rails_4_1.gemfile +0 -20
data/.travis.yml
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
rvm:
|
2
|
-
- 2.2
|
3
|
-
- 2.3
|
4
|
-
- 2.4
|
5
|
-
- 2.5
|
2
|
+
- 2.2
|
3
|
+
- 2.3
|
4
|
+
- 2.4
|
5
|
+
- 2.5
|
6
|
+
- 2.6
|
6
7
|
- ruby-head
|
7
8
|
|
8
9
|
addons:
|
@@ -14,30 +15,31 @@ branches:
|
|
14
15
|
- master
|
15
16
|
|
16
17
|
gemfile:
|
18
|
+
- gemfiles/rails_6_0.gemfile
|
17
19
|
- gemfiles/rails_5_2.gemfile
|
18
20
|
- gemfiles/rails_5_1.gemfile
|
19
21
|
- gemfiles/rails_5_0.gemfile
|
20
22
|
- gemfiles/rails_4_2.gemfile
|
21
|
-
- gemfiles/rails_4_1.gemfile
|
22
|
-
- gemfiles/rails_4_0.gemfile
|
23
23
|
|
24
24
|
matrix:
|
25
25
|
fast_finish: true
|
26
|
-
exclude:
|
27
|
-
- rvm: 2.4.4
|
28
|
-
gemfile: gemfiles/rails_4_0.gemfile
|
29
|
-
- rvm: 2.4.4
|
30
|
-
gemfile: gemfiles/rails_4_1.gemfile
|
31
|
-
- rvm: 2.5.1
|
32
|
-
gemfile: gemfiles/rails_4_0.gemfile
|
33
|
-
- rvm: 2.5.1
|
34
|
-
gemfile: gemfiles/rails_4_1.gemfile
|
35
|
-
- rvm: ruby-head
|
36
|
-
gemfile: gemfiles/rails_4_0.gemfile
|
37
|
-
- rvm: ruby-head
|
38
|
-
gemfile: gemfiles/rails_4_1.gemfile
|
39
26
|
allow_failures:
|
40
27
|
- rvm: ruby-head
|
28
|
+
exclude:
|
29
|
+
- rvm: 2.2
|
30
|
+
gemfile: gemfiles/rails_6_0.gemfile
|
31
|
+
- rvm: 2.3
|
32
|
+
gemfile: gemfiles/rails_6_0.gemfile
|
33
|
+
- rvm: 2.4
|
34
|
+
gemfile: gemfiles/rails_6_0.gemfile
|
35
|
+
- rvm: 2.4
|
36
|
+
gemfile: gemfiles/rails_4_2.gemfile
|
37
|
+
- rvm: 2.5
|
38
|
+
gemfile: gemfiles/rails_4_2.gemfile
|
39
|
+
|
40
|
+
before_install:
|
41
|
+
- gem install --remote bundler -v '~> 1.17'
|
42
|
+
- bin/install_geckodriver.sh
|
43
|
+
- bin/install_webpacker.sh
|
41
44
|
|
42
|
-
before_install: gem update --remote bundler
|
43
45
|
before_script: geckodriver -V
|
data/Appraisals
CHANGED
@@ -1,96 +1,32 @@
|
|
1
|
-
appraise "rails_4_0" do
|
2
|
-
gem "protected_attributes", "~> 1.0.3"
|
3
|
-
gem "rails", "~> 4.0.0"
|
4
|
-
gem "railties", "~> 4.0.0"
|
5
|
-
gem "capybara", "~> 2.0"
|
6
|
-
gem "selenium-webdriver", "~> 3.4.1"
|
7
|
-
gem "geckodriver-helper", "~> 0.0.5"
|
8
|
-
gem "turn", "~> 0.9.6"
|
9
|
-
gem "test-unit", '~> 3.1.5'
|
10
|
-
gem "rspec-rails", "~> 3.1.0"
|
11
|
-
gem "sass-rails", "~> 4.0.0"
|
12
|
-
gem "coffee-rails", "~> 4.0.0"
|
13
|
-
gem "jquery-rails", "~> 2.2.1"
|
14
|
-
gem "uglifier", "~> 2.1.0"
|
15
|
-
gem "sqlite3", "~> 1.3.7"
|
16
|
-
gem "database_cleaner", "~> 1.0.1"
|
17
|
-
gem "rake", "< 11.0"
|
18
|
-
end
|
19
|
-
|
20
|
-
appraise "rails_4_1" do
|
21
|
-
gem "protected_attributes", "~> 1.0.3"
|
22
|
-
gem "rails", "~> 4.1.0"
|
23
|
-
gem "railties", "~> 4.1.0"
|
24
|
-
gem "capybara", "~> 2.0"
|
25
|
-
gem "selenium-webdriver", "~> 3.4.1"
|
26
|
-
gem "geckodriver-helper", "~> 0.0.5"
|
27
|
-
gem "rspec-rails", "~> 3.1.0"
|
28
|
-
gem "sass-rails", "~> 4.0.0"
|
29
|
-
gem "coffee-rails", "~> 4.0.0"
|
30
|
-
gem "jquery-rails", "~> 2.2.1"
|
31
|
-
gem "uglifier", "~> 2.1.0"
|
32
|
-
gem "sqlite3", "~> 1.3.7"
|
33
|
-
gem "database_cleaner", "~> 1.0.1"
|
34
|
-
gem "rake", "< 11.0"
|
35
|
-
end
|
36
|
-
|
37
1
|
appraise "rails_4_2" do
|
38
|
-
gem "rails", "~> 4.2.1"
|
39
2
|
gem "railties", "~> 4.2.1"
|
40
|
-
gem "
|
41
|
-
gem "
|
42
|
-
gem "
|
43
|
-
gem "rspec-rails", "~> 3.1.0"
|
44
|
-
gem "sass-rails", "~> 5.0"
|
45
|
-
gem "coffee-rails", "~> 4.1.0"
|
46
|
-
gem "jquery-rails"
|
47
|
-
gem "uglifier", "~> 2.1.0"
|
48
|
-
gem "sqlite3", "~> 1.3.7"
|
49
|
-
gem "database_cleaner", "~> 1.0.1"
|
50
|
-
gem "rake", "< 11.0"
|
3
|
+
gem "i18n", "< 1.5.1", platform: :mri_22
|
4
|
+
gem "capybara", "< 3.16.0", platform: [:mri_23, :mri_22]
|
5
|
+
gem "nokogiri", "< 1.9.1", platform: [:mri_23, :mri_22]
|
51
6
|
end
|
52
7
|
|
53
8
|
appraise "rails_5_0" do
|
54
|
-
gem "rails", "~> 5.0.0"
|
55
9
|
gem "railties", "~> 5.0.0"
|
56
|
-
gem "
|
57
|
-
gem "
|
58
|
-
|
59
|
-
gem "rspec-rails", "~> 3.5.0"
|
60
|
-
gem "sass-rails", "~> 5.0"
|
61
|
-
gem "coffee-rails", "~> 4.2.0"
|
62
|
-
gem "jquery-rails"
|
63
|
-
gem "uglifier", "~> 2.7.2"
|
64
|
-
gem "sqlite3", "~> 1.3.7"
|
65
|
-
# Rails 5 requires database cleaner 1.1
|
66
|
-
gem "database_cleaner", ">= 1.1.0"
|
10
|
+
gem "i18n", "< 1.5.1", platform: :mri_22
|
11
|
+
gem "capybara", "< 3.16.0", platform: [:mri_23, :mri_22]
|
12
|
+
gem "nokogiri", "< 1.9.1", platform: [:mri_23, :mri_22]
|
67
13
|
end
|
68
14
|
|
69
15
|
appraise "rails_5_1" do
|
70
|
-
gem "rails", "~> 5.1.0"
|
71
16
|
gem "railties", "~> 5.1.0"
|
72
|
-
gem "
|
73
|
-
gem "
|
74
|
-
gem "
|
75
|
-
gem "rspec-rails", "~> 3.5.0"
|
76
|
-
gem "sass-rails", "~> 5.0"
|
77
|
-
gem "coffee-rails", "~> 4.2.0"
|
78
|
-
gem "uglifier", "~> 3.2.0"
|
79
|
-
gem "sqlite3", "~> 1.3.13"
|
80
|
-
# Rails 5 requires database cleaner 1.1
|
81
|
-
gem "database_cleaner", ">= 1.1.0"
|
17
|
+
gem "i18n", "< 1.5.1", platform: :mri_22
|
18
|
+
gem "capybara", "< 3.16.0", platform: [:mri_23, :mri_22]
|
19
|
+
gem "nokogiri", "< 1.9.1", platform: [:mri_23, :mri_22]
|
82
20
|
end
|
83
21
|
|
84
22
|
appraise "rails_5_2" do
|
85
|
-
gem "rails", "~> 5.2"
|
86
23
|
gem "railties", "~> 5.2"
|
87
|
-
gem "
|
88
|
-
gem "
|
89
|
-
gem "
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
gem "
|
94
|
-
gem "
|
95
|
-
gem "database_cleaner", ">= 1.1"
|
24
|
+
gem "i18n", "< 1.5.1", platform: :mri_22
|
25
|
+
gem "capybara", "< 3.16.0", platform: [:mri_23, :mri_22]
|
26
|
+
gem "nokogiri", "< 1.9.1", platform: [:mri_23, :mri_22]
|
27
|
+
end
|
28
|
+
|
29
|
+
appraise "rails_6_0" do
|
30
|
+
gem "railties", "~> 6.0.0.beta1"
|
31
|
+
gem "rails", "~> 6.0.0.beta1"
|
96
32
|
end
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,39 @@
|
|
1
1
|
Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CONTRIBUTING.md) on how to contribute to Cucumber.
|
2
2
|
|
3
|
-
## [master](https://github.com/cucumber/cucumber-rails/compare/v1.
|
3
|
+
## [master](https://github.com/cucumber/cucumber-rails/compare/v1.6.0...master) (Not yet released)
|
4
|
+
There are currently no unreleased changes.
|
5
|
+
|
6
|
+
## [v1.7.0](https://github.com/cucumber/cucumber-rails/compare/v1.6.0...v1.7.0) (2019-04-17)
|
7
|
+
|
8
|
+
### Changed
|
9
|
+
|
10
|
+
* Drop rails `4.0` / `4.1` support ([#392](https://github.com/cucumber/cucumber-rails/pull/392) [deivid-rodriguez](https://github.com/deivid-rodriguez))
|
11
|
+
* Allow Ruby `2.6` users to `ERB.new` ([#399](https://github.com/cucumber/cucumber-rails/pull/399) [koic](https://github.com/koic))
|
12
|
+
* Allow Rails to be used in the `6.x` series (Currently as of release only beta1 is supported) ([#405](https://github.com/cucumber/cucumber-rails/pull/405) [kotovalexarian](https://github.com/kotovalexarian))
|
13
|
+
* Update CI to test most relevant Rubies ([#411](https://github.com/cucumber/cucumber-rails/pull/411) [olleolleolle](https://github.com/olleolleolle))
|
14
|
+
|
15
|
+
### Fixed
|
16
|
+
|
17
|
+
* Appraisals fixes (Up-to-date `geckodriver`, standardised the various `.gemfile`s)
|
18
|
+
[#389](https://github.com/cucumber/cucumber-rails/pull/389) /
|
19
|
+
[#394](https://github.com/cucumber/cucumber-rails/pull/394) /
|
20
|
+
[#395](https://github.com/cucumber/cucumber-rails/pull/395) /
|
21
|
+
[#408](https://github.com/cucumber/cucumber-rails/pull/408)
|
22
|
+
[xtrasimplicity](https://github.com/xtrasimplicity) /
|
23
|
+
[deivid-rodriguez](https://github.com/deivid-rodriguez) /
|
24
|
+
[mvz](https://github.com/mvz)
|
25
|
+
|
26
|
+
* Various build issues that had built up over the previous year
|
27
|
+
[#403](https://github.com/cucumber/cucumber-rails/pull/403) /
|
28
|
+
[#404](https://github.com/cucumber/cucumber-rails/pull/404) /
|
29
|
+
[#410](https://github.com/cucumber/cucumber-rails/pull/410)
|
30
|
+
[koic](https://github.com/koic) /
|
31
|
+
[mvz](https://github.com/mvz)
|
32
|
+
|
33
|
+
## [v1.6.0](https://github.com/cucumber/cucumber-rails/compare/v1.5.0...v1.6.0) (2018-04-23)
|
4
34
|
|
5
35
|
### Changed
|
36
|
+
|
6
37
|
* Renamed History.md to CHANGELOG.md, added contributing note, and this line in accordance with [cucumber/cucumber #251](https://github.com/cucumber/cucumber/issues/251) ([#345](https://github.com/cucumber/cucumber-rails/pull/345) [jaysonesmith](https://github.com/jaysonesmith))
|
7
38
|
* Update .travis.yml with ruby versions ([#341](https://github.com/cucumber/cucumber-rails/pull/341) Jun Aruga)
|
8
39
|
* Removed support for Ruby <= 2.1, to keep in line with [cucumber-ruby](https://github.com/cucumber/cucumber-ruby/blob/master/CHANGELOG.md#302-2017-11-11) ([#360](https://github.com/cucumber/cucumber-rails/pull/360) [xtrasimplicity](https://github.com/xtrasimplicity)).
|
@@ -63,6 +94,7 @@ Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CO
|
|
63
94
|
* Various code enhancements based on PullReview suggestions (Kosmas Chatzimichalis)
|
64
95
|
|
65
96
|
### Removed Features
|
97
|
+
|
66
98
|
* Mongo step definition ([#263](https://github.com/cucumber/cucumber-rails/issues/263) Aslak Hellesøy)
|
67
99
|
|
68
100
|
### Bugfixes
|
@@ -85,7 +117,6 @@ Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CO
|
|
85
117
|
* Added recommendation in README.md for running install scripts after upgrading (Joost Baaij)
|
86
118
|
* Describe configuration option 'autorun_database_cleaner' in README ([#255](https://github.com/cucumber/cucumber-rails/pull/255) Martin Eismann)
|
87
119
|
|
88
|
-
|
89
120
|
### Changed Features
|
90
121
|
|
91
122
|
* Gemspec in 1.3.1 doesn't allow usage with rails 4 ([#244](https://github.com/cucumber/cucumber-rails/issues/244) Fabian Schwahn)
|
@@ -137,9 +168,11 @@ Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CO
|
|
137
168
|
## [v1.2.0](https://github.com/cucumber/cucumber-rails/compare/v1.1.1...v1.2.0) (2011-11-03)
|
138
169
|
|
139
170
|
### Removed features
|
171
|
+
|
140
172
|
* The (deprecated) tableish method has been removed. See https://gist.github.com/1299371 for an alternative. (Aslak Hellesøy)
|
141
173
|
|
142
174
|
### Bugfixes
|
175
|
+
|
143
176
|
* Non-threadsafe database connections shared between threads ([#166](https://github.com/cucumber/cucumber-rails/issues/166) Matt Wynne)
|
144
177
|
|
145
178
|
## [v1.1.1](https://github.com/cucumber/cucumber-rails/compare/v1.1.0...v1.1.1) (2011-10-03)
|
@@ -193,22 +226,26 @@ You can learn more about what Capybara has to offer in Capybara's [README](https
|
|
193
226
|
## [v1.0.6](https://github.com/cucumber/cucumber-rails/compare/v1.0.5...v1.0.6) (2011-09-25)
|
194
227
|
|
195
228
|
### Bugfixes
|
229
|
+
|
196
230
|
* Fix deprecation warnings ([#169](https://github.com/cucumber/cucumber-rails/issues/169), [#170](https://github.com/cucumber/cucumber-rails/pull/170) Micah Geisel)
|
197
231
|
* Deprecate #tableish. The Capybara::Node::Finders API has obsoleted the need for it. ([#145](https://github.com/cucumber/cucumber-rails/issues/145) Aslak Hellesøy)
|
198
232
|
|
199
233
|
## [v1.0.5](https://github.com/cucumber/cucumber-rails/compare/v1.0.4...v1.0.5) (2011-09-14)
|
200
234
|
|
201
235
|
### Bugfixes
|
236
|
+
|
202
237
|
* No = dependencies in gemspec, since rubies with old YAML (sych) can't read them. (Aslak Hellesøy)
|
203
238
|
|
204
239
|
## [v1.0.4](https://github.com/cucumber/cucumber-rails/compare/v1.0.3...v1.0.4) (2011-09-12)
|
205
240
|
|
206
241
|
### Bugfixes
|
242
|
+
|
207
243
|
* Active_record hook prevents features that access multiple database from running correctly ([#152](https://github.com/cucumber/cucumber-rails/issues/152) winnipegtransit)
|
208
244
|
|
209
245
|
## [v1.0.3](https://github.com/cucumber/cucumber-rails/compare/v1.0.2...v1.0.3) (2011-09-11)
|
210
246
|
|
211
247
|
### Bugfixes
|
248
|
+
|
212
249
|
* sqlite3-ruby is now sqlite3 ([#158](https://github.com/cucumber/cucumber-rails/pull/158) Trung Le)
|
213
250
|
* Broken link in the USAGE file of the features generator ([#156](https://github.com/cucumber/cucumber-rails/pull/156) Pablo Alonso García)
|
214
251
|
* Rails destroy cucumber:feature deletes the steps folder, even though it's not empty. ([#154](https://github.com/cucumber/cucumber-rails/pull/154]), [#111](https://github.com/cucumber/cucumber-rails/issues/111) mblake)
|
@@ -219,28 +256,33 @@ You can learn more about what Capybara has to offer in Capybara's [README](https
|
|
219
256
|
## [v1.0.2](https://github.com/cucumber/cucumber-rails/compare/v1.0.1...v1.0.2) (2011-06-26)
|
220
257
|
|
221
258
|
### Bugfixes
|
259
|
+
|
222
260
|
* Removed the dependency on rack-test, since it is not used directly. v1.0.1 was incompatible with Rails 3.0.9. (Aslak Hellesøy)
|
223
261
|
|
224
262
|
## [v1.0.1](https://github.com/cucumber/cucumber-rails/compare/v1.0.0...v1.0.1) (2011-06-25)
|
225
263
|
|
226
264
|
### New Features
|
227
|
-
|
265
|
+
|
266
|
+
* Added a `@no-database-cleaner` tag you can add if you don't want to run DatabaseCleaner. Useful for debugging if you want to leave data in the database. Typical use case is to run `rails server --environment test` to look at/try app with data from test. (Aslak Hellesøy)
|
228
267
|
* History file is now in Markdown format. (Aslak Hellesøy)
|
229
268
|
|
230
269
|
## [v1.0.0](https://github.com/cucumber/cucumber-rails/compare/v0.5.2...v1.0.0) (2011-06-20)
|
231
270
|
|
232
271
|
### New Features
|
233
|
-
|
272
|
+
|
273
|
+
* Upgraded Cucumber dependency to `1.0.0` (Aslak Hellesøy)
|
234
274
|
|
235
275
|
## [v0.5.2](https://github.com/cucumber/cucumber-rails/compare/v0.5.1...v0.5.2) (2011-06-07)
|
236
276
|
|
237
277
|
### New Features
|
278
|
+
|
238
279
|
* Upgraded to Capybara 1.0.0.rc1 (Aslak Hellesøy)
|
239
280
|
* Add stats to generator (#144 Aslak Hellesøy)
|
240
281
|
|
241
282
|
## [v0.5.1](https://github.com/cucumber/cucumber-rails/compare/v0.5.0...v0.5.1) (2011-05-25)
|
242
283
|
|
243
284
|
### Bugfixes
|
285
|
+
|
244
286
|
* Mixed DB access feature for @javascript drivers (#142 Alexander Mankuta)
|
245
287
|
* cucumber:feature and integers. not creating feature correctly (#30 John Ivanoff, Aslak Hellesøy)
|
246
288
|
* New project can't find capybara's "visit" (#143 Aslak Hellesøy)
|
@@ -249,6 +291,7 @@ You can learn more about what Capybara has to offer in Capybara's [README](https
|
|
249
291
|
## [v0.5.0](https://github.com/cucumber/cucumber-rails/compare/v0.5.0.beta1...v0.5.0) (2011-05-17)
|
250
292
|
|
251
293
|
### Bugfixes
|
294
|
+
|
252
295
|
* undefined method `add_assertion' for nil:NilClass (#96, #97, #98 Aslak Hellesøy)
|
253
296
|
* Capybara name error from env.rb (#125 Aslak Hellesøy)
|
254
297
|
* Fixed date-localization bug (#138 Michael Opitz)
|
@@ -256,11 +299,13 @@ You can learn more about what Capybara has to offer in Capybara's [README](https
|
|
256
299
|
## [v0.5.0.beta1](https://github.com/cucumber/cucumber-rails/compare/v0.4.1...v0.5.0.beta1) (2011-05-09)
|
257
300
|
|
258
301
|
### Removed features
|
302
|
+
|
259
303
|
* Dropped support for Rails 2 (Aslak Hellesøy)
|
260
304
|
* Dropped support for Webrat (Aslak Hellesøy)
|
261
305
|
* Removed database cleaner strategy overrides (#134 Daniel Morrison, Daniel Duvall)
|
262
306
|
|
263
307
|
### Improvements
|
308
|
+
|
264
309
|
* Upgrade to Capybara 1.0.0.beta1 or newer (#129, #130 Simon Menke, Klaus Hartl, Aslak Hellesøy)
|
265
310
|
* Generated paths.rb cleanup (#133 Tim Pope)
|
266
311
|
* Allow css pseudo-classes in scopers (#122 twalpole)
|
@@ -268,6 +313,7 @@ You can learn more about what Capybara has to offer in Capybara's [README](https
|
|
268
313
|
## [v0.4.1](https://github.com/cucumber/cucumber-rails/compare/v0.4.0...v0.4.1) (2011-04-05)
|
269
314
|
|
270
315
|
### Bugfixes
|
316
|
+
|
271
317
|
* Fixed incorrect warning in generated files. (#115 Emanuele Vicentini)
|
272
318
|
* Fixed incorrect hooks for DatabaseCleaner (#113 Markus Bengts)
|
273
319
|
* Throw an error if the user forgot to add DatabaseCleaner to the Gemfile, allowing them to decide whether or not to use it. (#36 Aslak Hellesøy, Ryan Bigg)
|
@@ -275,11 +321,13 @@ You can learn more about what Capybara has to offer in Capybara's [README](https
|
|
275
321
|
## [v0.4.0](https://github.com/cucumber/cucumber-rails/compare/v0.3.2...v0.4.0) (2011-03-20)
|
276
322
|
|
277
323
|
### New Features
|
324
|
+
|
278
325
|
* Add selectors helper (#63 Bodaniel Jeanes)
|
279
326
|
* Capybara date stepdefs (#66 Rob Holland)
|
280
327
|
* The World now includes Rack::Test::Methods, allowing get, post, put delete (Aslak Hellesøy)
|
281
328
|
|
282
329
|
### Bugfixes
|
330
|
+
|
283
331
|
* Allow setting rails root (#102, #103, Fabio Kreusch)
|
284
332
|
* Fix Date selection steps and helpers (#93, #99, #100, #101, #109 James Herdman, John Ferlito, twalpole, Geoff Drake, Ricky Robinson, Michael Fleet)
|
285
333
|
* Can not run cucumber-rails (0.4.0.beta.1) with cucumber (0.10.0) (#89 Aslak Hellesøy)
|
@@ -290,6 +338,7 @@ You can learn more about what Capybara has to offer in Capybara's [README](https
|
|
290
338
|
* Gem dependency on Nokogiri (for #tableish). (#53 Aslak Hellesøy)
|
291
339
|
|
292
340
|
### Removed Features
|
341
|
+
|
293
342
|
* Automatic detection of RSpec, Capybara and Webrat for install generator. Set gems explicitly in your Gemfile (Rails3) or environment.rb (Rails2)
|
294
343
|
* Then /^(?:|I )should see JSON:$/. Use #get and #last_response instead. See features/rails3.feature. (Aslak Hellesøy)
|
295
344
|
* Cucumber::Rails::World.use_transactional_fixtures. TODO: Explain what to do instead.
|
@@ -335,34 +384,39 @@ This is a major release since we're now supporting both Rails 3 and RSpec 2. Old
|
|
335
384
|
(Rails 2 and RSpec 1) are still supported.
|
336
385
|
|
337
386
|
### New Features
|
387
|
+
|
338
388
|
* Support for both Rails-2.x and Rails-3.x (#10 Kristian Mandrup, Aleksey Gureiev, Ashley Moran, Aslak Hellesøy)
|
339
389
|
* Support for both RSpec-1.x and RSpec-2.x (Louis Rose, Aslak Hellesøy)
|
340
390
|
* Features will default to Javascript emulation unless you turn it off with @culerity, (Aslak Hellesøy)
|
341
391
|
* Japanese translation. (MOROHASHI Kyosuke)
|
342
392
|
|
343
393
|
### Bugfixes
|
394
|
+
|
344
395
|
* Support projects that don't use ActiveRecord (#14 Aslak Hellesøy)
|
345
396
|
* Running test/unit tests when creating a skeleton (#12 Aleksey Gureiev)
|
346
397
|
* Inform that config/database.yml is overwritten, be smarter about it and inform the user that it is forced. (#15 Aslak Hellesøy)
|
347
398
|
* Reverts changes from issue #5 where verification of query string params was added to the step for being on a page. Adds step discussed in issue #11 for verification of query string. (#5, #11 Eric Milford)
|
348
399
|
* Fixed typos in Capybara's web steps (has_not_xpath? => has_no_xpath?) (Thorbjørn Hermansen, Carlos Antonio da Silva)
|
349
400
|
|
350
|
-
|
351
401
|
### New Features
|
402
|
+
|
352
403
|
* Added Danish translation (Kristian Mandrup)
|
353
404
|
* Using Gemfile for Rails 3. Tidies it up and adds cucumber gems only if not already present! (Kristian Mandrup)
|
354
405
|
* Added Generators wrapper module for Rails 3 generators so they are now all in Cucumber::Generators (Kristian Mandrup)
|
355
406
|
|
356
407
|
### Bugfixes
|
408
|
+
|
357
409
|
* Started to work on solutions for generating suitable support files depending on Rails version
|
358
410
|
- see skeleton_base.rb#create_feature_support and templates/support
|
359
411
|
|
360
412
|
## [v0.2.4](https://github.com/cucumber/cucumber-rails/compare/v0.2.3...v0.2.4) (2010-01-18)
|
361
413
|
|
362
414
|
### New Features
|
415
|
+
|
363
416
|
* Added Spanish translation (Gabriel)
|
364
417
|
|
365
418
|
### Bugfixes
|
419
|
+
|
366
420
|
* Fixed some broken Webrat/Test::Unit step definitions. (Aslak Hellesøy)
|
367
421
|
* Better Javascript emulation with Capybara (#7 Thorbjørn Hermansen)
|
368
422
|
* Removed stray quote in i18n web_steps.rb (Gabriel)
|
@@ -375,9 +429,11 @@ This is a major release since we're now supporting both Rails 3 and RSpec 2. Old
|
|
375
429
|
## [v0.2.3](https://github.com/cucumber/cucumber-rails/compare/v0.2.2...v0.2.3) (2010-01-03)
|
376
430
|
|
377
431
|
### New Features
|
432
|
+
|
378
433
|
* The #tableish Proc can return Strings as well as Nokogiri nodes now. (Aslak Hellesøy)
|
379
434
|
|
380
435
|
### Bugfixes
|
436
|
+
|
381
437
|
* Handle all types of URIs in "I should be on ..." steps. (#5 Andrew D. Smith)
|
382
438
|
|
383
439
|
## [v0.2.2](https://github.com/cucumber/cucumber-rails/compare/v0.2.1...v0.2.2) (2009-12-21)
|
@@ -389,6 +445,7 @@ This is a major release since we're now supporting both Rails 3 and RSpec 2. Old
|
|
389
445
|
* cucumber.rake finds the wrong vendored cucumber when a plugin name starts with "cucumber" (#4 James Herdman, Paco Benavent, Aslak Hellesøy)
|
390
446
|
|
391
447
|
### New features
|
448
|
+
|
392
449
|
* Czech translations. (Jiří Zajpt)
|
393
450
|
|
394
451
|
## [v0.2.1](https://github.com/cucumber/cucumber-rails/compare/v0.2.0...v0.2.1) (2009-12-16)
|
@@ -405,12 +462,12 @@ and to celebrate that cucumber-rails now supports Capybara as an alternative to
|
|
405
462
|
|
406
463
|
### UPGRADING FROM A PREVIOUS CUCUMBER SETUP
|
407
464
|
|
408
|
-
1. Remove your features/support/version_check.rb
|
409
|
-
|
465
|
+
1. Remove your `features/support/version_check.rb`
|
466
|
+
2. Remove your `features/step_definitions/webrat_steps.rb`
|
410
467
|
If you have added your own custom step definitions to this file,
|
411
468
|
put them in a different file under features/step_definitions
|
412
|
-
|
413
|
-
|
469
|
+
3. run `ruby script/generate cucumber --help` to see what options you have.
|
470
|
+
4. run `ruby script/generate cucumber` - plus whatever options you think fit for you.
|
414
471
|
Answer "n" (no) when asked to overwrite paths.rb.
|
415
472
|
Answer "y" (yes) when asked to overwrite other files, but do "d" (diff) first.
|
416
473
|
If you have edits in some of these files that you want to keep, store the diff
|
@@ -418,9 +475,9 @@ and to celebrate that cucumber-rails now supports Capybara as an alternative to
|
|
418
475
|
adding your custom code to another file that won't be overwritten the next time
|
419
476
|
you upgrade.
|
420
477
|
|
421
|
-
Many people have edits in their env.rb file. This is something you should try
|
478
|
+
Many people have edits in their `env.rb` file. This is something you should try
|
422
479
|
to avoid in the future. Instead, keep your custom setup in a different file
|
423
|
-
under features/support - Cucumber loads all files under features/**/*.rb anyway.
|
480
|
+
under `features/support` - Cucumber loads all files under `features/**/*.rb` anyway.
|
424
481
|
|
425
482
|
If you have a Spork setup, see the end of this thread:
|
426
483
|
http://groups.google.com/group/cukes/browse_thread/thread/475385cc26377215
|
data/CONTRIBUTING.md
CHANGED
@@ -13,29 +13,29 @@ We appreciate that. But before you do, please learn our basic rules:
|
|
13
13
|
|
14
14
|
# Contributing to cucumber-rails
|
15
15
|
|
16
|
-
This document is a guide for those maintaining
|
16
|
+
This document is a guide for those maintaining Cucumber-Rails, and others who would like to submit patches.
|
17
17
|
|
18
18
|
## Note on Patches/Pull Requests
|
19
19
|
|
20
20
|
* Fork the project. Make a branch for your change.
|
21
21
|
* Make your feature addition or bug fix.
|
22
|
-
* Make sure your patch is well covered by tests. We don't accept changes to cucumber-rails that aren't tested.
|
23
|
-
* Please do not change the Rakefile, version, or
|
24
|
-
(if you want to have your own version, that is fine but
|
25
|
-
bump version in a commit by itself so we can ignore when we merge your change)
|
22
|
+
* Make sure your patch is well covered by tests. We don't accept changes to `cucumber-rails` that aren't tested.
|
23
|
+
* Please do not change the Rakefile, version, or CHANGELOG.
|
26
24
|
* Send us a pull request.
|
27
25
|
|
28
26
|
## Running tests
|
29
27
|
|
30
28
|
gem install bundler
|
31
29
|
bundle install
|
30
|
+
bin/install_geckodriver.sh
|
31
|
+
bin/install_webpacker.sh
|
32
32
|
bundle exec rake
|
33
33
|
|
34
34
|
## Release Process
|
35
35
|
|
36
|
-
* Make sure `
|
37
|
-
* No need to add a
|
38
|
-
* Make sure you have up-to-date and clean copy of cucumber/cucumber.github.com.git at the same level as cucumber repo.
|
36
|
+
* Make sure `CHANGELOG.md` is updated with the upcoming version number, and has entries for all fixes.
|
37
|
+
* No need to add a new version header at this point - this should be done when a new release is made, later.
|
38
|
+
* Make sure you have up-to-date and clean copy of `cucumber/cucumber.github.com.git` at the same level as cucumber repo.
|
39
39
|
|
40
40
|
Now release it
|
41
41
|
|
@@ -55,18 +55,19 @@ If after running the rake release task you get an error similar to this:
|
|
55
55
|
! [rejected] rails-2.3.x -> rails-2.3.x (non-fast-forward)
|
56
56
|
error: failed to push some refs to 'git@github.com:cucumber/cucumber-rails.git'
|
57
57
|
|
58
|
-
make sure that you have pulled all the recent changes from
|
58
|
+
make sure that you have pulled all the recent changes from the master branch
|
59
59
|
|
60
60
|
## Gaining Release Karma
|
61
61
|
|
62
|
-
To become a release manager, create a pull request adding your name to the list below,
|
62
|
+
To become a release manager, create a pull request adding your name to the list below, including
|
63
|
+
your Rubygems email address in the ticket. One of the existing Release managers will then add you.
|
63
64
|
|
64
65
|
Current release managers:
|
65
66
|
* Kosmas Chatzimichalis
|
66
67
|
* Matt Wynne
|
67
68
|
* Mathieu Jobin
|
69
|
+
* Andrew Walter
|
68
70
|
|
69
71
|
To grant release karma, issue the following command:
|
70
72
|
|
71
73
|
gem owner cucumber-rails --add <NEW OWNER RUBYGEMS EMAIL>
|
72
|
-
|