casecumber-rails 1.0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/.rspec +1 -0
- data/.rvmrc +1 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +205 -0
- data/History.md +219 -0
- data/LICENSE +22 -0
- data/README.md +77 -0
- data/Rakefile +9 -0
- data/config/.gitignore +1 -0
- data/config/cucumber.yml +1 -0
- data/cucumber-rails.gemspec +46 -0
- data/dev_tasks/cucumber.rake +5 -0
- data/dev_tasks/rspec.rake +8 -0
- data/dev_tasks/yard.rake +0 -0
- data/dev_tasks/yard/default/layout/html/bubble_32x32.png +0 -0
- data/dev_tasks/yard/default/layout/html/footer.erb +5 -0
- data/dev_tasks/yard/default/layout/html/index.erb +1 -0
- data/dev_tasks/yard/default/layout/html/layout.erb +25 -0
- data/dev_tasks/yard/default/layout/html/logo.erb +1 -0
- data/dev_tasks/yard/default/layout/html/setup.rb +4 -0
- data/features/allow_rescue.feature +63 -0
- data/features/capybara_javascript_drivers.feature +87 -0
- data/features/database_cleaner.feature +44 -0
- data/features/emulate_javascript.feature +34 -0
- data/features/inspect_query_string.feature +37 -0
- data/features/install_cucumber_rails.feature +16 -0
- data/features/mongoid.feature +53 -0
- data/features/multiple_databases.feature +74 -0
- data/features/named_selectors.feature +33 -0
- data/features/no_database.feature +70 -0
- data/features/pseduo_class_selectors.feature +24 -0
- data/features/rerun_profile.feature +38 -0
- data/features/rest_api.feature +47 -0
- data/features/routing.feature +18 -0
- data/features/select_dates.feature +99 -0
- data/features/step_definitions/cucumber_rails_steps.rb +89 -0
- data/features/support/env.rb +37 -0
- data/features/test_unit.feature +43 -0
- data/lib/cucumber/rails.rb +23 -0
- data/lib/cucumber/rails/action_controller.rb +12 -0
- data/lib/cucumber/rails/application.rb +17 -0
- data/lib/cucumber/rails/capybara.rb +6 -0
- data/lib/cucumber/rails/capybara/javascript_emulation.rb +83 -0
- data/lib/cucumber/rails/capybara/select_dates_and_times.rb +50 -0
- data/lib/cucumber/rails/hooks.rb +4 -0
- data/lib/cucumber/rails/hooks/active_record.rb +21 -0
- data/lib/cucumber/rails/hooks/allow_rescue.rb +8 -0
- data/lib/cucumber/rails/hooks/database_cleaner.rb +13 -0
- data/lib/cucumber/rails/hooks/mail.rb +5 -0
- data/lib/cucumber/rails/rspec.rb +21 -0
- data/lib/cucumber/rails/world.rb +26 -0
- data/lib/cucumber/web/tableish.rb +118 -0
- data/lib/generators/cucumber/feature/USAGE +16 -0
- data/lib/generators/cucumber/feature/feature_generator.rb +28 -0
- data/lib/generators/cucumber/feature/named_arg.rb +19 -0
- data/lib/generators/cucumber/feature/templates/feature.erb +63 -0
- data/lib/generators/cucumber/feature/templates/steps.erb +14 -0
- data/lib/generators/cucumber/install/USAGE +15 -0
- data/lib/generators/cucumber/install/install_generator.rb +88 -0
- data/lib/generators/cucumber/install/templates/config/cucumber.yml.erb +8 -0
- data/lib/generators/cucumber/install/templates/script/cucumber +10 -0
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps.rb.erb +192 -0
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps_cs.rb.erb +127 -0
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps_da.rb.erb +105 -0
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps_de.rb.erb +127 -0
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps_es.rb.erb +127 -0
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps_ja.rb.erb +140 -0
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps_ko.rb.erb +142 -0
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps_no.rb.erb +105 -0
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps_pt-BR.rb.erb +132 -0
- data/lib/generators/cucumber/install/templates/support/_rails_each_run.rb.erb +36 -0
- data/lib/generators/cucumber/install/templates/support/_rails_prefork.rb.erb +1 -0
- data/lib/generators/cucumber/install/templates/support/capybara.rb +5 -0
- data/lib/generators/cucumber/install/templates/support/edit_warning.txt +5 -0
- data/lib/generators/cucumber/install/templates/support/paths.rb +33 -0
- data/lib/generators/cucumber/install/templates/support/rails.rb.erb +4 -0
- data/lib/generators/cucumber/install/templates/support/rails_spork.rb.erb +13 -0
- data/lib/generators/cucumber/install/templates/support/selectors.rb +39 -0
- data/lib/generators/cucumber/install/templates/support/web_steps_warning.txt +19 -0
- data/lib/generators/cucumber/install/templates/tasks/cucumber.rake.erb +60 -0
- data/spec/cucumber/web/tableish_spec.rb +239 -0
- data/spec/spec_helper.rb +3 -0
- metadata +514 -0
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--format progress --colour
|
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm @cucumber --create
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,205 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
casecumber-rails (1.0.2.1)
|
5
|
+
capybara (>= 1.0.0)
|
6
|
+
casecumber (~> 1.0.2.1)
|
7
|
+
nokogiri (>= 1.4.6)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: http://rubygems.org/
|
11
|
+
specs:
|
12
|
+
actionmailer (3.2.8.rc2)
|
13
|
+
actionpack (= 3.2.8.rc2)
|
14
|
+
mail (~> 2.4.4)
|
15
|
+
actionpack (3.2.8.rc2)
|
16
|
+
activemodel (= 3.2.8.rc2)
|
17
|
+
activesupport (= 3.2.8.rc2)
|
18
|
+
builder (~> 3.0.0)
|
19
|
+
erubis (~> 2.7.0)
|
20
|
+
journey (~> 1.0.4)
|
21
|
+
rack (~> 1.4.0)
|
22
|
+
rack-cache (~> 1.2)
|
23
|
+
rack-test (~> 0.6.1)
|
24
|
+
sprockets (~> 2.1.3)
|
25
|
+
activemodel (3.2.8.rc2)
|
26
|
+
activesupport (= 3.2.8.rc2)
|
27
|
+
builder (~> 3.0.0)
|
28
|
+
activerecord (3.2.8.rc2)
|
29
|
+
activemodel (= 3.2.8.rc2)
|
30
|
+
activesupport (= 3.2.8.rc2)
|
31
|
+
arel (~> 3.0.2)
|
32
|
+
tzinfo (~> 0.3.29)
|
33
|
+
activeresource (3.2.8.rc2)
|
34
|
+
activemodel (= 3.2.8.rc2)
|
35
|
+
activesupport (= 3.2.8.rc2)
|
36
|
+
activesupport (3.2.8.rc2)
|
37
|
+
i18n (~> 0.6)
|
38
|
+
multi_json (~> 1.0)
|
39
|
+
addressable (2.3.2)
|
40
|
+
ansi (1.4.3)
|
41
|
+
arel (3.0.2)
|
42
|
+
aruba (0.4.6)
|
43
|
+
bcat (>= 0.6.1)
|
44
|
+
childprocess (>= 0.2.0)
|
45
|
+
cucumber (>= 1.0.2)
|
46
|
+
rdiscount (>= 1.6.8)
|
47
|
+
rspec (>= 2.6.0)
|
48
|
+
bcat (0.6.1)
|
49
|
+
rack (~> 1.0)
|
50
|
+
bson (1.6.4)
|
51
|
+
bson_ext (1.6.4)
|
52
|
+
bson (~> 1.6.4)
|
53
|
+
builder (3.0.0)
|
54
|
+
capybara (1.1.2)
|
55
|
+
mime-types (>= 1.16)
|
56
|
+
nokogiri (>= 1.3.3)
|
57
|
+
rack (>= 1.0.0)
|
58
|
+
rack-test (>= 0.5.4)
|
59
|
+
selenium-webdriver (~> 2.0)
|
60
|
+
xpath (~> 0.1.4)
|
61
|
+
casecumber (1.0.2.1)
|
62
|
+
builder (>= 2.1.2)
|
63
|
+
diff-lcs (>= 1.1.2)
|
64
|
+
gherkin (~> 2.4.5)
|
65
|
+
json (>= 1.4.6)
|
66
|
+
term-ansicolor (>= 1.0.5)
|
67
|
+
childprocess (0.3.5)
|
68
|
+
ffi (~> 1.0, >= 1.0.6)
|
69
|
+
coffee-script (2.2.0)
|
70
|
+
coffee-script-source
|
71
|
+
execjs
|
72
|
+
coffee-script-source (1.3.3)
|
73
|
+
cucumber (1.0.6)
|
74
|
+
builder (>= 2.1.2)
|
75
|
+
diff-lcs (>= 1.1.2)
|
76
|
+
gherkin (~> 2.4.18)
|
77
|
+
json (>= 1.4.6)
|
78
|
+
term-ansicolor (>= 1.0.6)
|
79
|
+
database_cleaner (0.8.0)
|
80
|
+
diff-lcs (1.1.3)
|
81
|
+
erubis (2.7.0)
|
82
|
+
execjs (1.4.0)
|
83
|
+
multi_json (~> 1.0)
|
84
|
+
factory_girl (4.0.0)
|
85
|
+
activesupport (>= 3.0.0)
|
86
|
+
ffi (1.1.5)
|
87
|
+
gherkin (2.4.21)
|
88
|
+
json (>= 1.4.6)
|
89
|
+
hike (1.2.1)
|
90
|
+
i18n (0.6.0)
|
91
|
+
journey (1.0.4)
|
92
|
+
jquery-rails (2.1.1)
|
93
|
+
railties (>= 3.1.0, < 5.0)
|
94
|
+
thor (~> 0.14)
|
95
|
+
json (1.7.5)
|
96
|
+
libwebsocket (0.1.5)
|
97
|
+
addressable
|
98
|
+
mail (2.4.4)
|
99
|
+
i18n (>= 0.4.0)
|
100
|
+
mime-types (~> 1.16)
|
101
|
+
treetop (~> 1.4.8)
|
102
|
+
mime-types (1.19)
|
103
|
+
mongoid (3.0.4)
|
104
|
+
activemodel (~> 3.1)
|
105
|
+
moped (~> 1.1)
|
106
|
+
origin (~> 1.0)
|
107
|
+
tzinfo (~> 0.3.22)
|
108
|
+
moped (1.2.0)
|
109
|
+
multi_json (1.3.6)
|
110
|
+
nokogiri (1.5.5)
|
111
|
+
origin (1.0.6)
|
112
|
+
polyglot (0.3.3)
|
113
|
+
rack (1.4.1)
|
114
|
+
rack-cache (1.2)
|
115
|
+
rack (>= 0.4)
|
116
|
+
rack-ssl (1.3.2)
|
117
|
+
rack
|
118
|
+
rack-test (0.6.1)
|
119
|
+
rack (>= 1.0)
|
120
|
+
rails (3.2.8.rc2)
|
121
|
+
actionmailer (= 3.2.8.rc2)
|
122
|
+
actionpack (= 3.2.8.rc2)
|
123
|
+
activerecord (= 3.2.8.rc2)
|
124
|
+
activeresource (= 3.2.8.rc2)
|
125
|
+
activesupport (= 3.2.8.rc2)
|
126
|
+
bundler (~> 1.0)
|
127
|
+
railties (= 3.2.8.rc2)
|
128
|
+
railties (3.2.8.rc2)
|
129
|
+
actionpack (= 3.2.8.rc2)
|
130
|
+
activesupport (= 3.2.8.rc2)
|
131
|
+
rack-ssl (~> 1.3.2)
|
132
|
+
rake (>= 0.8.7)
|
133
|
+
rdoc (~> 3.4)
|
134
|
+
thor (>= 0.14.6, < 2.0)
|
135
|
+
rake (0.9.2.2)
|
136
|
+
rdiscount (1.6.8)
|
137
|
+
rdoc (3.12)
|
138
|
+
json (~> 1.4)
|
139
|
+
rspec (2.11.0)
|
140
|
+
rspec-core (~> 2.11.0)
|
141
|
+
rspec-expectations (~> 2.11.0)
|
142
|
+
rspec-mocks (~> 2.11.0)
|
143
|
+
rspec-core (2.11.1)
|
144
|
+
rspec-expectations (2.11.2)
|
145
|
+
diff-lcs (~> 1.1.3)
|
146
|
+
rspec-mocks (2.11.2)
|
147
|
+
rspec-rails (2.11.0)
|
148
|
+
actionpack (>= 3.0)
|
149
|
+
activesupport (>= 3.0)
|
150
|
+
railties (>= 3.0)
|
151
|
+
rspec (~> 2.11.0)
|
152
|
+
rubyzip (0.9.9)
|
153
|
+
sass (3.2.1)
|
154
|
+
selenium-webdriver (2.25.0)
|
155
|
+
childprocess (>= 0.2.5)
|
156
|
+
libwebsocket (~> 0.1.3)
|
157
|
+
multi_json (~> 1.0)
|
158
|
+
rubyzip
|
159
|
+
sprockets (2.1.3)
|
160
|
+
hike (~> 1.2)
|
161
|
+
rack (~> 1.0)
|
162
|
+
tilt (~> 1.1, != 1.3.0)
|
163
|
+
sqlite3 (1.3.6)
|
164
|
+
sqlite3-ruby (1.3.3)
|
165
|
+
sqlite3 (>= 1.3.3)
|
166
|
+
term-ansicolor (1.0.7)
|
167
|
+
thor (0.16.0)
|
168
|
+
tilt (1.3.3)
|
169
|
+
treetop (1.4.10)
|
170
|
+
polyglot
|
171
|
+
polyglot (>= 0.3.1)
|
172
|
+
turn (0.9.6)
|
173
|
+
ansi
|
174
|
+
tzinfo (0.3.33)
|
175
|
+
uglifier (1.2.7)
|
176
|
+
execjs (>= 0.3.0)
|
177
|
+
multi_json (~> 1.3)
|
178
|
+
xpath (0.1.4)
|
179
|
+
nokogiri (~> 1.3)
|
180
|
+
yard (0.7.1)
|
181
|
+
|
182
|
+
PLATFORMS
|
183
|
+
ruby
|
184
|
+
|
185
|
+
DEPENDENCIES
|
186
|
+
aruba (>= 0.4.3)
|
187
|
+
bcat (= 0.6.1)
|
188
|
+
bson_ext (>= 1.3.1)
|
189
|
+
bundler (>= 1.0.15)
|
190
|
+
casecumber-rails!
|
191
|
+
coffee-script (>= 2.2.0)
|
192
|
+
database_cleaner (>= 0.6.7)
|
193
|
+
factory_girl (>= 2.0.0)
|
194
|
+
jquery-rails (>= 1.0.12)
|
195
|
+
mongoid (>= 2.0.2)
|
196
|
+
rails (>= 3.1.0.rc4)
|
197
|
+
rake (>= 0.9.2)
|
198
|
+
rdiscount (= 1.6.8)
|
199
|
+
rspec (>= 2.6.0)
|
200
|
+
rspec-rails (>= 2.6.1)
|
201
|
+
sass (>= 3.1.3)
|
202
|
+
sqlite3-ruby (>= 1.3.3)
|
203
|
+
turn (>= 0.8.2)
|
204
|
+
uglifier (>= 1.0.0)
|
205
|
+
yard (= 0.7.1)
|
data/History.md
ADDED
@@ -0,0 +1,219 @@
|
|
1
|
+
## [v1.0.2](https://github.com/cucumber/cucumber-rails/compare/v1.0.1...v1.0.2)
|
2
|
+
|
3
|
+
### Bugfixes
|
4
|
+
* 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)
|
5
|
+
|
6
|
+
## [v1.0.1](https://github.com/cucumber/cucumber-rails/compare/v1.0.0...v1.0.1)
|
7
|
+
|
8
|
+
### New Features
|
9
|
+
* 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)
|
10
|
+
* History file is now in Markdown format. (Aslak Hellesøy)
|
11
|
+
|
12
|
+
## [v1.0.0](https://github.com/cucumber/cucumber-rails/compare/v0.5.2...v1.0.0)
|
13
|
+
|
14
|
+
### New Features
|
15
|
+
* Upgraded Cucumber dependency to 1.0.0. (Aslak Hellesøy)
|
16
|
+
|
17
|
+
## [v0.5.2](https://github.com/cucumber/cucumber-rails/compare/v0.5.1...v0.5.2)
|
18
|
+
|
19
|
+
### New Features
|
20
|
+
* Upgraded to Capybara 1.0.0.rc1 (Aslak Hellesøy)
|
21
|
+
* Add stats to generator (#144 Aslak Hellesøy)
|
22
|
+
|
23
|
+
## [v0.5.1](https://github.com/cucumber/cucumber-rails/compare/v0.5.0...v0.5.1)
|
24
|
+
|
25
|
+
### Bugfixes
|
26
|
+
* Mixed DB access feature for @javascript drivers (#142 Alexander Mankuta)
|
27
|
+
* cucumber:feature and integers. not creating feature correctly (#30 John Ivanoff, Aslak Hellesøy)
|
28
|
+
* New project can't find capybara's "visit" (#143 Aslak Hellesøy)
|
29
|
+
* rails generate cucumber:install attempts double run (#140 Aslak Hellesøy)
|
30
|
+
|
31
|
+
## [v0.5.0](https://github.com/cucumber/cucumber-rails/compare/v0.5.0.beta1...v0.5.0)
|
32
|
+
|
33
|
+
### Bugfixes
|
34
|
+
* undefined method `add_assertion' for nil:NilClass (#96, #97, #98 Aslak Hellesøy)
|
35
|
+
* Capybara name error from env.rb (#125 Aslak Hellesøy)
|
36
|
+
* Fixed date-localization bug (#138 Michael Opitz)
|
37
|
+
|
38
|
+
## [v0.5.0.beta1](https://github.com/cucumber/cucumber-rails/compare/v0.4.1...v0.5.0.beta1)
|
39
|
+
|
40
|
+
### Removed features
|
41
|
+
* Dropped support for Rails 2 (Aslak Hellesøy)
|
42
|
+
* Dropped support for Webrat (Aslak Hellesøy)
|
43
|
+
* Removed database cleaner strategy overrides (#134 Daniel Morrison, Daniel Duvall)
|
44
|
+
|
45
|
+
### Improvements
|
46
|
+
* Upgrade to Capybara 1.0.0.beta1 or newer (#129, #130 Simon Menke, Klaus Hartl, Aslak Hellesøy)
|
47
|
+
* Generated paths.rb cleanup (#133 Tim Pope)
|
48
|
+
* Allow css pseudo-classes in scopers (#122 twalpole)
|
49
|
+
|
50
|
+
## [v0.4.1](https://github.com/cucumber/cucumber-rails/compare/v0.4.0...v0.4.1)
|
51
|
+
|
52
|
+
### Bugfixes
|
53
|
+
* Fixed incorrect warning in generated files. (#115 Emanuele Vicentini)
|
54
|
+
* Fixed incorrect hooks for DatabaseCleaner (#113 Markus Bengts)
|
55
|
+
* 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)
|
56
|
+
|
57
|
+
## [v0.4.0](https://github.com/cucumber/cucumber-rails/compare/v0.3.2...v0.4.0)
|
58
|
+
|
59
|
+
### New Features
|
60
|
+
* Add selectors helper (#63 Bodaniel Jeanes)
|
61
|
+
* Capybara date stepdefs (#66 Rob Holland)
|
62
|
+
* The World now includes Rack::Test::Methods, allowing get, post, put delete (Aslak Hellesøy)
|
63
|
+
|
64
|
+
### Bugfixes
|
65
|
+
* Allow setting rails root (#102, #103, Fabio Kreusch)
|
66
|
+
* Fix Date selection steps and helpers (#93, #99, #100, #101, #109 James Herdman, John Ferlito, twalpole, Geoff Drake, Ricky Robinson, Michael Fleet)
|
67
|
+
* Can not run cucumber-rails (0.4.0.beta.1) with cucumber (0.10.0) (#89 Aslak Hellesøy)
|
68
|
+
* Installing cucumber-rails without a database.yml fails (#61 Aslak Hellesøy)
|
69
|
+
* Fix #click_link compatibility with Capybara 0.4. (#54, #77, #78, #80 Aslak Hellesøy)
|
70
|
+
* Support for projects using other ORMs than ActiveRecord (or nothing at all). (#18, #22, #46, #85, #86, #87, #90 Aslak Hellesøy)
|
71
|
+
* @allow-rescue not working in rails 3 (#31 Joe Ferris, Aslak Hellesøy)
|
72
|
+
* Gem dependency on Nokogiri (for #tableish). (#53 Aslak Hellesøy)
|
73
|
+
|
74
|
+
### Removed Features
|
75
|
+
* Automatic detection of RSpec, Capybara and Webrat for install generator. Set gems explicitly in your Gemfile (Rails3) or environment.rb (Rails2)
|
76
|
+
* Then /^(?:|I )should see JSON:$/. Use #get and #last_response instead. See features/rails3.feature. (Aslak Hellesøy)
|
77
|
+
* Cucumber::Rails::World.use_transactional_fixtures. TODO: Explain what to do instead.
|
78
|
+
No more Cucumber::Rails::World.use_transactional_fixtures = false. Use DatabaseCleaner.strategy = :none instead
|
79
|
+
|
80
|
+
## [v0.3.2](https://github.com/cucumber/cucumber-rails/compare/v0.3.1...v0.3.2)
|
81
|
+
* web_steps.rb uses "([^"]*)" instead of "([^\"]*)" (Aslak Hellesøy)
|
82
|
+
* Renamed cucumber:skeleton to cucumber:install (Rails 3 generator). (Aslak Hellesøy)
|
83
|
+
* Upgraded to be compatible with rspec 2.0.0.beta.10 (#35 Gabor Ratky, Pete Yandell)
|
84
|
+
|
85
|
+
## [v0.3.1](https://github.com/cucumber/cucumber-rails/compare/v0.3.0...v0.3.1)
|
86
|
+
|
87
|
+
This release has a lot of bugfixes! The test suite (based on Aruba) verifies that Cucumber-Rails
|
88
|
+
now works with various combinations of:
|
89
|
+
|
90
|
+
* Cucumber 0.6.x/0.7.2
|
91
|
+
* Rails2/Rails3
|
92
|
+
* RSpec1/RSpec2/Test-Unit/Mini-Uint
|
93
|
+
* Webrat/CapyBara
|
94
|
+
* MRI 1.8.6/1.8.7/1.9.1
|
95
|
+
|
96
|
+
This one requires a special mention: The handy (but error prone) rerun functionality has moved to a
|
97
|
+
separate rerun profile, so all rerun.txt related issues should now be gone.
|
98
|
+
|
99
|
+
* New Capybara Step Definitions for Dates. (Rob Holland)
|
100
|
+
* Steps now recognise "Given I am on the users page" etc. (Solomon White)
|
101
|
+
* Relegate rerun to its own profile and rake task (Mike Sassak)
|
102
|
+
* Added new Then /^(?:|I )should see JSON:$/ step definition to Capybara - useful for REST. (Aslak Hellesøy)
|
103
|
+
* The #tableish method now understands tables with colspan and rowspan
|
104
|
+
* Support RSpec 2 (Johan Kiviniemi, Aslak Hellesøy, Rolf Bjaanes)
|
105
|
+
* Added @no-js-emulation, which turns off javascript emulation for delete links when not using browser testing. (Rob Holland, Aslak Hellesøy)
|
106
|
+
* Korean translation (Shim Taewon)
|
107
|
+
|
108
|
+
### Bugfixes
|
109
|
+
* No longer need to install the test-unit gem on 1.9.1 (Aslak Hellesøy)
|
110
|
+
* capybara rack-test field should contain step support for textarea (#28 Nicholas Rutherford)
|
111
|
+
* "Rspec is not missing constant Matchers!" error. (#27 David Chelimsky, Aslak Hellesøy)
|
112
|
+
* @culerity tag breaks Rails 3 RESTful helpers (#17 Aslak Hellesøy)
|
113
|
+
|
114
|
+
## [v0.3.0](https://github.com/cucumber/cucumber-rails/compare/v0.2.4...v0.3.0)
|
115
|
+
|
116
|
+
This is a major release since we're now supporting both Rails 3 and RSpec 2. Older versions
|
117
|
+
(Rails 2 and RSpec 1) are still supported.
|
118
|
+
|
119
|
+
### New Features
|
120
|
+
* Support for both Rails-2.x and Rails-3.x (#10 Kristian Mandrup, Aleksey Gureiev, Ashley Moran, Aslak Hellesøy)
|
121
|
+
* Support for both RSpec-1.x and RSpec-2.x (Louis Rose, Aslak Hellesøy)
|
122
|
+
* Features will default to Javascript emulation unless you turn it off with @culerity, (Aslak Hellesøy)
|
123
|
+
* Japanese translation. (MOROHASHI Kyosuke)
|
124
|
+
|
125
|
+
### Bugfixes
|
126
|
+
* Support projects that don't use ActiveRecord (#14 Aslak Hellesøy)
|
127
|
+
* Running test/unit tests when creating a skeleton (#12 Aleksey Gureiev)
|
128
|
+
* Inform that config/database.yml is overwritten, be smarter about it and inform the user that it is forced. (#15 Aslak Hellesøy)
|
129
|
+
* 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)
|
130
|
+
* Fixed typos in Capybara's web steps (has_not_xpath? => has_no_xpath?) (Thorbjørn Hermansen, Carlos Antonio da Silva)
|
131
|
+
|
132
|
+
|
133
|
+
### New Features
|
134
|
+
* Added Danish translation (Kristian Mandrup)
|
135
|
+
* Using Gemfile for Rails 3. Tidies it up and adds cucumber gems only if not already present! (Kristian Mandrup)
|
136
|
+
* Added Generators wrapper module for Rails 3 generators so they are now all in Cucumber::Generators (Kristian Mandrup)
|
137
|
+
|
138
|
+
### Bugfixes
|
139
|
+
* Started to work on solutions for generating suitable support files depending on Rails version
|
140
|
+
- see skeleton_base.rb#create_feature_support and templates/support
|
141
|
+
|
142
|
+
## [v0.2.4](https://github.com/cucumber/cucumber-rails/compare/v0.2.3...v0.2.4)
|
143
|
+
|
144
|
+
### New Features
|
145
|
+
* Added Spanish translation (Gabriel)
|
146
|
+
|
147
|
+
### Bugfixes
|
148
|
+
* Fixed some broken Webrat/Test::Unit step definitions. (Aslak Hellesøy)
|
149
|
+
* Better Javascript emulation with Capybara (#7 Thorbjørn Hermansen)
|
150
|
+
* Removed stray quote in i18n web_steps.rb (Gabriel)
|
151
|
+
* Update hooks to new boolean logic (#6 Jon Larkowski, Michael MacDonald)
|
152
|
+
* Fixed incompatibility with Rails 3 (Mutwin Kraus)
|
153
|
+
* Fixed broken "fill in the following" step for Capybara web_steps (Lenny Marks)
|
154
|
+
* Capybara web_steps.rb with_scope didn't work in nested steps (Lenny Marks)
|
155
|
+
* Fixed "should not see" steps in web_steps.rb to use the correct selector (Toni Tuominen)
|
156
|
+
|
157
|
+
## [v0.2.3](https://github.com/cucumber/cucumber-rails/compare/v0.2.2...v0.2.3)
|
158
|
+
|
159
|
+
### New Features
|
160
|
+
* The #tableish Proc can return Strings as well as Nokogiri nodes now. (Aslak Hellesøy)
|
161
|
+
|
162
|
+
### Bugfixes
|
163
|
+
* Handle all types of URIs in "I should be on ..." steps. (#5 Andrew D. Smith)
|
164
|
+
|
165
|
+
## [v0.2.2](https://github.com/cucumber/cucumber-rails/compare/v0.2.1...v0.2.2)
|
166
|
+
|
167
|
+
### Bugfixes
|
168
|
+
* Fix bad link in gemspec. (Aslak Hellesøy)
|
169
|
+
* Unified file attaching step names. (Jiří Zajpt)
|
170
|
+
* Fix typos in variable names in several step definitions. (Jiří Zajpt)
|
171
|
+
* cucumber.rake finds the wrong vendored cucumber when a plugin name starts with "cucumber" (#4 James Herdman, Paco Benavent, Aslak Hellesøy)
|
172
|
+
|
173
|
+
### New features
|
174
|
+
* Czech translations. (Jiří Zajpt)
|
175
|
+
|
176
|
+
## [v0.2.1](https://github.com/cucumber/cucumber-rails/compare/v0.2.0...v0.2.1)
|
177
|
+
|
178
|
+
Small bugfix release
|
179
|
+
|
180
|
+
### Bugfixes
|
181
|
+
* Made sure database_cleaner is always set up as a dependency in config/environments/cucumber.rb. (Aslak Hellesøy)
|
182
|
+
|
183
|
+
|
184
|
+
This is the first release of cucumber-rails, which was factored out of cucumber.
|
185
|
+
We're calling it 0.2.0 just because we did some prereleases in the 0.1 series,
|
186
|
+
and to celebrate that cucumber-rails now supports Capybara as an alternative to Webrat.
|
187
|
+
|
188
|
+
### UPGRADING FROM A PREVIOUS CUCUMBER SETUP
|
189
|
+
|
190
|
+
1. Remove your features/support/version_check.rb
|
191
|
+
1. Remove your features/step_definitions/webrat_steps.rb
|
192
|
+
If you have added your own custom step definitions to this file,
|
193
|
+
put them in a different file under features/step_definitions
|
194
|
+
1. run "ruby script/generate cucumber --help" to see what options you have.
|
195
|
+
1. run "ruby script/generate cucumber" - plus whatever options you think fit for you.
|
196
|
+
Answer "n" (no) when asked to overwrite paths.rb.
|
197
|
+
Answer "y" (yes) when asked to overwrite other files, but do "d" (diff) first.
|
198
|
+
If you have edits in some of these files that you want to keep, store the diff
|
199
|
+
in a temporary file and reapply after you have overwritten the file. ALso consider
|
200
|
+
adding your custom code to another file that won't be overwritten the next time
|
201
|
+
you upgrade.
|
202
|
+
|
203
|
+
Many people have edits in their env.rb file. This is something you should try
|
204
|
+
to avoid in the future. Instead, keep your custom setup in a different file
|
205
|
+
under features/support - Cucumber loads all files under features/**/*.rb anyway.
|
206
|
+
|
207
|
+
If you have a Spork setup, see the end of this thread:
|
208
|
+
http://groups.google.com/group/cukes/browse_thread/thread/475385cc26377215
|
209
|
+
|
210
|
+
### New features
|
211
|
+
* Added an @emulate_rails_javascript tag that will emulate onclick with Capybara (Aslak Hellesøy, Rob Holland)
|
212
|
+
* Added a smart config/cucumber.yml file that will rerun previously failing scenarios (Aslak Hellesøy)
|
213
|
+
* Support for Capybara. Run "script/generate --capybara" if you want that. (Rob Holland, Aslak Hellesøy)
|
214
|
+
* New #tableish method to extract table-like data from a HTML page. Pure Nokogiri/CSS3/XPath. (Aslak Hellesøy)
|
215
|
+
|
216
|
+
### Bugfixes
|
217
|
+
* Webrat step "Then I should be on" should use request_uri instead of path for missing query string parameters (ZhangJinzhu)
|
218
|
+
* Added MIME type parameter to attach file step definition (Felix Flores)
|
219
|
+
* Added check when including ActiveSupport::Testing::SetupAndTeardown for older Rails versions (Jeremy Durham)
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2008,2009,2010 Aslak Hellesøy and the Cucumber Team.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|