spreewald 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/CHANGELOG.md +5 -0
  4. data/README.md +7 -7
  5. data/lib/spreewald/email_steps.rb +10 -8
  6. data/lib/spreewald/web_steps.rb +12 -7
  7. data/lib/spreewald_support/version.rb +1 -1
  8. data/tests/rails-3_capybara-1/Gemfile.lock +1 -1
  9. data/tests/rails-3_capybara-1/config/cucumber.yml +2 -0
  10. data/tests/rails-3_capybara-1/config/database.yml +7 -0
  11. data/tests/rails-3_capybara-1/features/support/paths.rb +16 -0
  12. data/tests/rails-3_capybara-1/features/support/selectors.rb +52 -0
  13. data/tests/rails-3_capybara-2/Gemfile.lock +1 -1
  14. data/tests/rails-3_capybara-2/Rakefile +18 -0
  15. data/tests/rails-3_capybara-2/config.ru +4 -0
  16. data/tests/rails-4_capybara-3/Gemfile.lock +1 -1
  17. data/tests/rails-4_capybara-3/features/development_steps.feature +8 -0
  18. data/tests/rails-4_capybara-3/features/email_steps.feature +216 -0
  19. data/tests/rails-4_capybara-3/features/overriding.feature +5 -0
  20. data/tests/rails-4_capybara-3/features/step_definitions/overriding_steps.rb +3 -0
  21. data/tests/rails-4_capybara-3/features/step_definitions/test_steps.rb +56 -0
  22. data/tests/rails-4_capybara-3/features/support/paths.rb +16 -0
  23. data/tests/rails-4_capybara-3/features/support/selectors.rb +52 -0
  24. data/tests/rails-4_capybara-3/features/table_steps.feature +293 -0
  25. data/tests/rails-4_capybara-3/features/web_steps.feature +295 -0
  26. data/tests/shared/app/views/forms/disabled_elements.html.haml +53 -0
  27. data/tests/shared/features/shared/email_steps.feature +3 -11
  28. data/tests/shared/features/shared/web_steps.feature +25 -0
  29. metadata +5 -31
  30. data/tests/rails-3_capybara-1/app +0 -1
  31. data/tests/rails-3_capybara-1/config/cucumber.yml +0 -1
  32. data/tests/rails-3_capybara-1/config/database.yml +0 -1
  33. data/tests/rails-3_capybara-1/db +0 -1
  34. data/tests/rails-3_capybara-1/features/shared +0 -1
  35. data/tests/rails-3_capybara-1/features/support/paths.rb +0 -1
  36. data/tests/rails-3_capybara-1/features/support/selectors.rb +0 -1
  37. data/tests/rails-3_capybara-1/public +0 -1
  38. data/tests/rails-3_capybara-2/Rakefile +0 -1
  39. data/tests/rails-3_capybara-2/app +0 -1
  40. data/tests/rails-3_capybara-2/config +0 -1
  41. data/tests/rails-3_capybara-2/config.ru +0 -1
  42. data/tests/rails-3_capybara-2/db +0 -1
  43. data/tests/rails-3_capybara-2/features +0 -1
  44. data/tests/rails-3_capybara-2/public +0 -1
  45. data/tests/rails-3_capybara-2/script +0 -1
  46. data/tests/rails-4_capybara-3/app +0 -1
  47. data/tests/rails-4_capybara-3/db +0 -1
  48. data/tests/rails-4_capybara-3/features/development_steps.feature +0 -1
  49. data/tests/rails-4_capybara-3/features/email_steps.feature +0 -1
  50. data/tests/rails-4_capybara-3/features/overriding.feature +0 -1
  51. data/tests/rails-4_capybara-3/features/step_definitions/overriding_steps.rb +0 -1
  52. data/tests/rails-4_capybara-3/features/step_definitions/test_steps.rb +0 -1
  53. data/tests/rails-4_capybara-3/features/support/paths.rb +0 -1
  54. data/tests/rails-4_capybara-3/features/support/selectors.rb +0 -1
  55. data/tests/rails-4_capybara-3/features/table_steps.feature +0 -1
  56. data/tests/rails-4_capybara-3/features/web_steps.feature +0 -1
  57. data/tests/rails-4_capybara-3/public/fixture_files +0 -1
  58. data/tests/shared/db/test.sqlite3 +0 -0
@@ -0,0 +1,53 @@
1
+ -# buttons
2
+ %button(disabled='disabled')
3
+ Disabled button #1
4
+
5
+ %button(disabled=true)
6
+ Disabled button #2
7
+
8
+ %button(disabled='')
9
+ Disabled button #3
10
+
11
+ %button(disabled='aaa')
12
+ Disabled button #4
13
+
14
+ %button(disabled=false)
15
+ Enabled button #1
16
+
17
+ %button
18
+ Enabled button #2
19
+
20
+ -# checkboxes
21
+ = form_tag do
22
+ - checked = false
23
+ = label_tag 'disabled_name_1', 'Disabled checkbox #1'
24
+ = check_box_tag 'disabled_name_1', 'value', checked, disabled: true
25
+
26
+ = label_tag 'disabled_name_2', 'Disabled checkbox #2'
27
+ = check_box_tag 'disabled_name_2', 'value', checked, disabled: ''
28
+
29
+ = label_tag 'disabled_name_3', 'Disabled checkbox #3'
30
+ = check_box_tag 'disabled_name_3', 'value', checked, disabled: 'aaa'
31
+
32
+ = label_tag 'enabled_name_1', 'Enabled checkbox #1'
33
+ = check_box_tag 'enabled_name_1', 'value', checked, disabled: false
34
+
35
+ = label_tag 'enabled_name_2', 'Enabled checkbox #2'
36
+ = check_box_tag 'enabled_name_2', 'value', checked
37
+
38
+ -# fields
39
+ = form_tag do
40
+ = label_tag 'disabled_field_1', 'Disabled field #1'
41
+ = text_field_tag 'disabled_field_1', 'value', disabled: true
42
+
43
+ = label_tag 'disabled_field_2', 'Disabled field #2'
44
+ = text_field_tag 'disabled_field_2', 'value', disabled: ''
45
+
46
+ = label_tag 'disabled_field_3', 'Disabled field #3'
47
+ = text_field_tag 'disabled_field_3', 'value', disabled: 'aaa'
48
+
49
+ = label_tag 'enabled_field_1', 'Enabled field #1'
50
+ = text_field_tag 'enabled_field_1', 'value', disabled: false
51
+
52
+ = label_tag 'enabled_field_2', 'Enabled field #2'
53
+ = text_field_tag 'enabled_field_2', 'value'
@@ -170,10 +170,6 @@ Feature: Test Spreewald's email steps
170
170
 
171
171
  Scenario: /^that e?mail should have the following lines in the body:$/
172
172
  When I go to "/emails/send_email"
173
- Then an email should have been sent with:
174
- """
175
- From: from@example.com
176
- """
177
173
 
178
174
  # Test with correct body lines
179
175
  Then the following multiline step should succeed:
@@ -196,17 +192,13 @@ Feature: Test Spreewald's email steps
196
192
  """
197
193
 
198
194
 
199
- Scenario: /^that e?mail should have the following body:$/
195
+ Scenario: /^that e?mail should have the following( content in the)? body$/
200
196
  When I go to "/emails/send_email"
201
- Then an email should have been sent with:
202
- """
203
- From: from@example.com
204
- """
205
197
 
206
198
  # Test with correct body lines
207
199
  Then the following multiline step should succeed:
208
200
  """
209
- Then that email should have the following body:
201
+ Then that email should have the following content in the body:
210
202
  '''
211
203
  with
212
204
  line
@@ -221,4 +213,4 @@ Feature: Test Spreewald's email steps
221
213
  wrong
222
214
  line
223
215
  '''
224
- """
216
+ """
@@ -268,3 +268,28 @@ Feature: Web steps
268
268
  And I should not see the number 60,72
269
269
  And I should not see the amount -60,7 €
270
270
  And I should not see the amount -10,000.99 EUR within ".unrelated-element"
271
+
272
+
273
+ Scenario: /^the "([^\"]*)" button should( not)? be disabled$/
274
+ When I go to "/forms/disabled_elements"
275
+ # buttons
276
+ Then the "Disabled button #1" button should be disabled
277
+ And the "Disabled button #2" button should be disabled
278
+ And the "Disabled button #3" button should be disabled
279
+ And the "Disabled button #4" button should be disabled
280
+ But the "Enabled button #1" button should not be disabled
281
+ And the "Enabled button #2" button should not be disabled
282
+
283
+ # checkboxes
284
+ And the "Disabled checkbox #1" checkbox should be disabled
285
+ And the "Disabled checkbox #2" checkbox should be disabled
286
+ And the "Disabled checkbox #3" checkbox should be disabled
287
+ But the "Enabled checkbox #1" checkbox should not be disabled
288
+ And the "Enabled checkbox #2" checkbox should not be disabled
289
+
290
+ # fields
291
+ And the "Disabled field #1" field should be disabled
292
+ And the "Disabled field #2" field should be disabled
293
+ And the "Disabled field #3" field should be disabled
294
+ But the "Enabled field #1" field should not be disabled
295
+ And the "Enabled field #2" field should not be disabled
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreewald
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Kraze
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-14 00:00:00.000000000 Z
11
+ date: 2019-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -181,7 +181,6 @@ files:
181
181
  - tests/rails-3_capybara-1/Gemfile
182
182
  - tests/rails-3_capybara-1/Gemfile.lock
183
183
  - tests/rails-3_capybara-1/Rakefile
184
- - tests/rails-3_capybara-1/app
185
184
  - tests/rails-3_capybara-1/config.ru
186
185
  - tests/rails-3_capybara-1/config/application.rb
187
186
  - tests/rails-3_capybara-1/config/boot.rb
@@ -194,32 +193,22 @@ files:
194
193
  - tests/rails-3_capybara-1/config/initializers/secret_token.rb
195
194
  - tests/rails-3_capybara-1/config/initializers/session_store.rb
196
195
  - tests/rails-3_capybara-1/config/routes.rb
197
- - tests/rails-3_capybara-1/db
198
- - tests/rails-3_capybara-1/features/shared
199
196
  - tests/rails-3_capybara-1/features/support/env.rb
200
197
  - tests/rails-3_capybara-1/features/support/paths.rb
201
198
  - tests/rails-3_capybara-1/features/support/selectors.rb
202
199
  - tests/rails-3_capybara-1/features/support/selenium.rb
203
- - tests/rails-3_capybara-1/public
204
200
  - tests/rails-3_capybara-1/script/cucumber
205
201
  - tests/rails-3_capybara-1/script/rails
206
202
  - tests/rails-3_capybara-2/.ruby-version
207
203
  - tests/rails-3_capybara-2/Gemfile
208
204
  - tests/rails-3_capybara-2/Gemfile.lock
209
205
  - tests/rails-3_capybara-2/Rakefile
210
- - tests/rails-3_capybara-2/app
211
- - tests/rails-3_capybara-2/config
212
206
  - tests/rails-3_capybara-2/config.ru
213
- - tests/rails-3_capybara-2/db
214
- - tests/rails-3_capybara-2/features
215
- - tests/rails-3_capybara-2/public
216
- - tests/rails-3_capybara-2/script
217
207
  - tests/rails-4_capybara-3/.gitignore
218
208
  - tests/rails-4_capybara-3/Gemfile
219
209
  - tests/rails-4_capybara-3/Gemfile.lock
220
210
  - tests/rails-4_capybara-3/README.rdoc
221
211
  - tests/rails-4_capybara-3/Rakefile
222
- - tests/rails-4_capybara-3/app
223
212
  - tests/rails-4_capybara-3/bin/bundle
224
213
  - tests/rails-4_capybara-3/bin/rails
225
214
  - tests/rails-4_capybara-3/bin/rake
@@ -244,7 +233,6 @@ files:
244
233
  - tests/rails-4_capybara-3/config/locales/en.yml
245
234
  - tests/rails-4_capybara-3/config/routes.rb
246
235
  - tests/rails-4_capybara-3/config/secrets.yml
247
- - tests/rails-4_capybara-3/db
248
236
  - tests/rails-4_capybara-3/features/development_steps.feature
249
237
  - tests/rails-4_capybara-3/features/email_steps.feature
250
238
  - tests/rails-4_capybara-3/features/overriding.feature
@@ -262,7 +250,6 @@ files:
262
250
  - tests/rails-4_capybara-3/public/422.html
263
251
  - tests/rails-4_capybara-3/public/500.html
264
252
  - tests/rails-4_capybara-3/public/favicon.ico
265
- - tests/rails-4_capybara-3/public/fixture_files
266
253
  - tests/rails-4_capybara-3/script/cucumber
267
254
  - tests/shared/app/controllers/application_controller.rb
268
255
  - tests/shared/app/controllers/authenticated_controller.rb
@@ -274,6 +261,7 @@ files:
274
261
  - tests/shared/app/models/mailer.rb
275
262
  - tests/shared/app/views/emails/send_email.haml
276
263
  - tests/shared/app/views/forms/checkbox_form.html.haml
264
+ - tests/shared/app/views/forms/disabled_elements.html.haml
277
265
  - tests/shared/app/views/forms/form1.html.haml
278
266
  - tests/shared/app/views/forms/form2.html.haml
279
267
  - tests/shared/app/views/forms/invalid_form.html.haml
@@ -295,7 +283,6 @@ files:
295
283
  - tests/shared/config/database.yml
296
284
  - tests/shared/db/migrate/.gitignore
297
285
  - tests/shared/db/schema.rb
298
- - tests/shared/db/test.sqlite3
299
286
  - tests/shared/features/shared/development_steps.feature
300
287
  - tests/shared/features/shared/email_steps.feature
301
288
  - tests/shared/features/shared/overriding.feature
@@ -328,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
328
315
  version: '0'
329
316
  requirements: []
330
317
  rubyforge_project:
331
- rubygems_version: 2.6.14.3
318
+ rubygems_version: 2.2.5
332
319
  signing_key:
333
320
  specification_version: 4
334
321
  summary: Collection of useful cucumber steps.
@@ -337,7 +324,6 @@ test_files:
337
324
  - tests/rails-3_capybara-1/Gemfile
338
325
  - tests/rails-3_capybara-1/Gemfile.lock
339
326
  - tests/rails-3_capybara-1/Rakefile
340
- - tests/rails-3_capybara-1/app
341
327
  - tests/rails-3_capybara-1/config.ru
342
328
  - tests/rails-3_capybara-1/config/application.rb
343
329
  - tests/rails-3_capybara-1/config/boot.rb
@@ -350,32 +336,22 @@ test_files:
350
336
  - tests/rails-3_capybara-1/config/initializers/secret_token.rb
351
337
  - tests/rails-3_capybara-1/config/initializers/session_store.rb
352
338
  - tests/rails-3_capybara-1/config/routes.rb
353
- - tests/rails-3_capybara-1/db
354
- - tests/rails-3_capybara-1/features/shared
355
339
  - tests/rails-3_capybara-1/features/support/env.rb
356
340
  - tests/rails-3_capybara-1/features/support/paths.rb
357
341
  - tests/rails-3_capybara-1/features/support/selectors.rb
358
342
  - tests/rails-3_capybara-1/features/support/selenium.rb
359
- - tests/rails-3_capybara-1/public
360
343
  - tests/rails-3_capybara-1/script/cucumber
361
344
  - tests/rails-3_capybara-1/script/rails
362
345
  - tests/rails-3_capybara-2/.ruby-version
363
346
  - tests/rails-3_capybara-2/Gemfile
364
347
  - tests/rails-3_capybara-2/Gemfile.lock
365
348
  - tests/rails-3_capybara-2/Rakefile
366
- - tests/rails-3_capybara-2/app
367
- - tests/rails-3_capybara-2/config
368
349
  - tests/rails-3_capybara-2/config.ru
369
- - tests/rails-3_capybara-2/db
370
- - tests/rails-3_capybara-2/features
371
- - tests/rails-3_capybara-2/public
372
- - tests/rails-3_capybara-2/script
373
350
  - tests/rails-4_capybara-3/.gitignore
374
351
  - tests/rails-4_capybara-3/Gemfile
375
352
  - tests/rails-4_capybara-3/Gemfile.lock
376
353
  - tests/rails-4_capybara-3/README.rdoc
377
354
  - tests/rails-4_capybara-3/Rakefile
378
- - tests/rails-4_capybara-3/app
379
355
  - tests/rails-4_capybara-3/bin/bundle
380
356
  - tests/rails-4_capybara-3/bin/rails
381
357
  - tests/rails-4_capybara-3/bin/rake
@@ -400,7 +376,6 @@ test_files:
400
376
  - tests/rails-4_capybara-3/config/locales/en.yml
401
377
  - tests/rails-4_capybara-3/config/routes.rb
402
378
  - tests/rails-4_capybara-3/config/secrets.yml
403
- - tests/rails-4_capybara-3/db
404
379
  - tests/rails-4_capybara-3/features/development_steps.feature
405
380
  - tests/rails-4_capybara-3/features/email_steps.feature
406
381
  - tests/rails-4_capybara-3/features/overriding.feature
@@ -418,7 +393,6 @@ test_files:
418
393
  - tests/rails-4_capybara-3/public/422.html
419
394
  - tests/rails-4_capybara-3/public/500.html
420
395
  - tests/rails-4_capybara-3/public/favicon.ico
421
- - tests/rails-4_capybara-3/public/fixture_files
422
396
  - tests/rails-4_capybara-3/script/cucumber
423
397
  - tests/shared/app/controllers/application_controller.rb
424
398
  - tests/shared/app/controllers/authenticated_controller.rb
@@ -430,6 +404,7 @@ test_files:
430
404
  - tests/shared/app/models/mailer.rb
431
405
  - tests/shared/app/views/emails/send_email.haml
432
406
  - tests/shared/app/views/forms/checkbox_form.html.haml
407
+ - tests/shared/app/views/forms/disabled_elements.html.haml
433
408
  - tests/shared/app/views/forms/form1.html.haml
434
409
  - tests/shared/app/views/forms/form2.html.haml
435
410
  - tests/shared/app/views/forms/invalid_form.html.haml
@@ -451,7 +426,6 @@ test_files:
451
426
  - tests/shared/config/database.yml
452
427
  - tests/shared/db/migrate/.gitignore
453
428
  - tests/shared/db/schema.rb
454
- - tests/shared/db/test.sqlite3
455
429
  - tests/shared/features/shared/development_steps.feature
456
430
  - tests/shared/features/shared/email_steps.feature
457
431
  - tests/shared/features/shared/overriding.feature
@@ -1 +0,0 @@
1
- tests/rails-3_capybara-1/../shared/app
@@ -1 +0,0 @@
1
- tests/rails-3_capybara-1/config/../../shared/config/cucumber.yml
@@ -1 +0,0 @@
1
- tests/rails-3_capybara-1/config/../../shared/config/database.yml
@@ -1 +0,0 @@
1
- tests/rails-3_capybara-1/../shared/db
@@ -1 +0,0 @@
1
- tests/rails-3_capybara-1/features/../../shared/features/shared
@@ -1 +0,0 @@
1
- tests/rails-3_capybara-1/features/support/../../../shared/features/support/paths.rb
@@ -1 +0,0 @@
1
- tests/rails-3_capybara-1/features/support/../../../shared/features/support/selectors.rb
@@ -1 +0,0 @@
1
- tests/rails-3_capybara-1/../shared/public
@@ -1 +0,0 @@
1
- tests/rails-3_capybara-2/../rails-3_capybara-1/Rakefile
@@ -1 +0,0 @@
1
- tests/rails-3_capybara-2/../rails-3_capybara-1/app
@@ -1 +0,0 @@
1
- tests/rails-3_capybara-2/../rails-3_capybara-1/config
@@ -1 +0,0 @@
1
- tests/rails-3_capybara-2/../rails-3_capybara-1/config.ru
@@ -1 +0,0 @@
1
- tests/rails-3_capybara-2/../rails-3_capybara-1/db
@@ -1 +0,0 @@
1
- tests/rails-3_capybara-2/../rails-3_capybara-1/features/
@@ -1 +0,0 @@
1
- tests/rails-3_capybara-2/../rails-3_capybara-1/public
@@ -1 +0,0 @@
1
- tests/rails-3_capybara-2/../rails-3_capybara-1/script/
@@ -1 +0,0 @@
1
- tests/rails-4_capybara-3/../shared/app/
@@ -1 +0,0 @@
1
- tests/rails-4_capybara-3/../shared/db/
@@ -1 +0,0 @@
1
- tests/rails-4_capybara-3/features/../../shared/features/shared/development_steps.feature
@@ -1 +0,0 @@
1
- tests/rails-4_capybara-3/features/../../shared/features/shared/email_steps.feature
@@ -1 +0,0 @@
1
- tests/rails-4_capybara-3/features/../../shared/features/shared/overriding.feature
@@ -1 +0,0 @@
1
- tests/rails-4_capybara-3/features/step_definitions/../../../shared/features/shared/step_definitions/
@@ -1 +0,0 @@
1
- tests/rails-4_capybara-3/features/step_definitions/../../../shared/features/shared/step_definitions/
@@ -1 +0,0 @@
1
- tests/rails-4_capybara-3/features/support/../../../shared/features/support/paths.rb
@@ -1 +0,0 @@
1
- tests/rails-4_capybara-3/features/support/../../../shared/features/support/selectors.rb
@@ -1 +0,0 @@
1
- tests/rails-4_capybara-3/features/../../shared/features/shared/table_steps.feature
@@ -1 +0,0 @@
1
- tests/rails-4_capybara-3/features/../../shared/features/shared/web_steps.feature
@@ -1 +0,0 @@
1
- tests/rails-4_capybara-3/public/../../shared/public/fixture_files/
Binary file