cucumber-rails 2.2.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +86 -19
- data/README.md +4 -13
- data/lib/cucumber/rails/capybara/select_dates_and_times.rb +28 -13
- data/lib/cucumber/rails/database/deletion_strategy.rb +2 -0
- data/lib/cucumber/rails/database/null_strategy.rb +15 -0
- data/lib/cucumber/rails/database/shared_connection_strategy.rb +2 -0
- data/lib/cucumber/rails/database/strategy.rb +4 -0
- data/lib/cucumber/rails/database/truncation_strategy.rb +2 -0
- data/lib/cucumber/rails/database.rb +2 -1
- data/lib/cucumber/rails.rb +1 -0
- data/lib/generators/cucumber/install_generator.rb +13 -16
- data/lib/generators/cucumber/templates/config/cucumber.yml.erb +3 -3
- data/lib/generators/cucumber/templates/tasks/cucumber.rake.erb +5 -0
- metadata +79 -244
- data/Appraisals +0 -26
- data/Gemfile +0 -5
- data/Rakefile +0 -53
- data/bin/install_geckodriver.sh +0 -19
- data/bin/install_webpacker.sh +0 -9
- data/config/cucumber.yml +0 -17
- data/cucumber-rails.gemspec +0 -53
- data/dev_tasks/cucumber.rake +0 -5
- data/dev_tasks/rspec.rake +0 -5
- data/dev_tasks/yard/default/layout/html/bubble_32x32.png +0 -0
- data/dev_tasks/yard/default/layout/html/footer.erb +0 -5
- data/dev_tasks/yard/default/layout/html/index.erb +0 -1
- data/dev_tasks/yard/default/layout/html/layout.erb +0 -25
- data/dev_tasks/yard/default/layout/html/logo.erb +0 -1
- data/dev_tasks/yard/default/layout/html/setup.rb +0 -9
- data/dev_tasks/yard.rake +0 -28
- data/features/allow_rescue.feature +0 -66
- data/features/annotations.feature +0 -20
- data/features/capybara_javascript_drivers.feature +0 -132
- data/features/choose_javascript_database_strategy.feature +0 -125
- data/features/configuration.feature +0 -48
- data/features/database_cleaner.feature +0 -131
- data/features/disable_automatic_database_cleaning.feature +0 -49
- data/features/emulate_javascript.feature +0 -109
- data/features/install_cucumber_rails.feature +0 -14
- data/features/no_database.feature +0 -61
- data/features/raising_errors.feature +0 -22
- data/features/rerun_profile.feature +0 -47
- data/features/rest_api.feature +0 -47
- data/features/step_definitions/cucumber_rails_steps.rb +0 -80
- data/features/support/aruba.rb +0 -5
- data/features/support/cucumber_rails_helper.rb +0 -86
- data/features/support/env.rb +0 -6
- data/features/support/hooks.rb +0 -8
- data/gemfiles/rails_5_0.gemfile +0 -10
- data/gemfiles/rails_5_1.gemfile +0 -10
- data/gemfiles/rails_5_2.gemfile +0 -9
- data/gemfiles/rails_6_0.gemfile +0 -8
- data/lib/generators/cucumber/templates/support/rails_spork.rb.erb +0 -13
- data/spec/cucumber/rails/database_spec.rb +0 -74
- data/spec/examples.txt +0 -19
- data/spec/generators/cucumber/install_generator_spec.rb +0 -55
- data/spec/spec_helper.rb +0 -16
- data/tmp/aruba/test_app/Gemfile +0 -62
- data/tmp/aruba/test_app/Gemfile.lock +0 -249
- data/tmp/aruba/test_app/README.md +0 -24
- data/tmp/aruba/test_app/Rakefile +0 -6
- data/tmp/aruba/test_app/app/assets/config/manifest.js +0 -3
- data/tmp/aruba/test_app/app/assets/javascripts/application.js +0 -16
- data/tmp/aruba/test_app/app/assets/javascripts/appointments.coffee +0 -3
- data/tmp/aruba/test_app/app/assets/javascripts/cable.js +0 -13
- data/tmp/aruba/test_app/app/assets/stylesheets/application.css +0 -15
- data/tmp/aruba/test_app/app/assets/stylesheets/appointments.scss +0 -3
- data/tmp/aruba/test_app/app/assets/stylesheets/scaffolds.scss +0 -84
- data/tmp/aruba/test_app/app/channels/application_cable/channel.rb +0 -4
- data/tmp/aruba/test_app/app/channels/application_cable/connection.rb +0 -4
- data/tmp/aruba/test_app/app/controllers/application_controller.rb +0 -2
- data/tmp/aruba/test_app/app/controllers/appointments_controller.rb +0 -74
- data/tmp/aruba/test_app/app/helpers/application_helper.rb +0 -2
- data/tmp/aruba/test_app/app/helpers/appointments_helper.rb +0 -2
- data/tmp/aruba/test_app/app/jobs/application_job.rb +0 -2
- data/tmp/aruba/test_app/app/mailers/application_mailer.rb +0 -4
- data/tmp/aruba/test_app/app/models/application_record.rb +0 -3
- data/tmp/aruba/test_app/app/models/appointment.rb +0 -2
- data/tmp/aruba/test_app/app/views/appointments/_appointment.json.jbuilder +0 -2
- data/tmp/aruba/test_app/app/views/appointments/_form.html.erb +0 -27
- data/tmp/aruba/test_app/app/views/appointments/edit.html.erb +0 -6
- data/tmp/aruba/test_app/app/views/appointments/index.html.erb +0 -29
- data/tmp/aruba/test_app/app/views/appointments/index.json.jbuilder +0 -1
- data/tmp/aruba/test_app/app/views/appointments/new.html.erb +0 -5
- data/tmp/aruba/test_app/app/views/appointments/show.html.erb +0 -14
- data/tmp/aruba/test_app/app/views/appointments/show.json.jbuilder +0 -1
- data/tmp/aruba/test_app/app/views/layouts/application.html.erb +0 -15
- data/tmp/aruba/test_app/app/views/layouts/mailer.html.erb +0 -13
- data/tmp/aruba/test_app/app/views/layouts/mailer.text.erb +0 -1
- data/tmp/aruba/test_app/bin/bundle +0 -3
- data/tmp/aruba/test_app/bin/rails +0 -4
- data/tmp/aruba/test_app/bin/rake +0 -4
- data/tmp/aruba/test_app/bin/setup +0 -36
- data/tmp/aruba/test_app/bin/update +0 -31
- data/tmp/aruba/test_app/bin/yarn +0 -11
- data/tmp/aruba/test_app/config/application.rb +0 -19
- data/tmp/aruba/test_app/config/boot.rb +0 -3
- data/tmp/aruba/test_app/config/cable.yml +0 -10
- data/tmp/aruba/test_app/config/credentials.yml.enc +0 -1
- data/tmp/aruba/test_app/config/cucumber.yml +0 -9
- data/tmp/aruba/test_app/config/database.yml +0 -25
- data/tmp/aruba/test_app/config/environment.rb +0 -5
- data/tmp/aruba/test_app/config/environments/development.rb +0 -61
- data/tmp/aruba/test_app/config/environments/production.rb +0 -94
- data/tmp/aruba/test_app/config/environments/test.rb +0 -46
- data/tmp/aruba/test_app/config/initializers/application_controller_renderer.rb +0 -8
- data/tmp/aruba/test_app/config/initializers/assets.rb +0 -14
- data/tmp/aruba/test_app/config/initializers/backtrace_silencers.rb +0 -7
- data/tmp/aruba/test_app/config/initializers/content_security_policy.rb +0 -25
- data/tmp/aruba/test_app/config/initializers/cookies_serializer.rb +0 -5
- data/tmp/aruba/test_app/config/initializers/filter_parameter_logging.rb +0 -4
- data/tmp/aruba/test_app/config/initializers/inflections.rb +0 -16
- data/tmp/aruba/test_app/config/initializers/mime_types.rb +0 -4
- data/tmp/aruba/test_app/config/initializers/wrap_parameters.rb +0 -14
- data/tmp/aruba/test_app/config/locales/en.yml +0 -33
- data/tmp/aruba/test_app/config/master.key +0 -1
- data/tmp/aruba/test_app/config/puma.rb +0 -37
- data/tmp/aruba/test_app/config/routes.rb +0 -4
- data/tmp/aruba/test_app/config/storage.yml +0 -34
- data/tmp/aruba/test_app/config.ru +0 -5
- data/tmp/aruba/test_app/db/development.sqlite3 +0 -0
- data/tmp/aruba/test_app/db/migrate/20200821080656_create_appointments.rb +0 -10
- data/tmp/aruba/test_app/db/schema.rb +0 -22
- data/tmp/aruba/test_app/db/seeds.rb +0 -7
- data/tmp/aruba/test_app/db/test.sqlite3 +0 -0
- data/tmp/aruba/test_app/features/create_appointment.feature +0 -9
- data/tmp/aruba/test_app/features/create_appointment_steps.rb +0 -19
- data/tmp/aruba/test_app/features/support/env.rb +0 -18
- data/tmp/aruba/test_app/lib/tasks/cucumber.rake +0 -76
- data/tmp/aruba/test_app/log/development.log +0 -27
- data/tmp/aruba/test_app/log/test.log +0 -38
- data/tmp/aruba/test_app/package.json +0 -5
- data/tmp/aruba/test_app/public/404.html +0 -67
- data/tmp/aruba/test_app/public/422.html +0 -67
- data/tmp/aruba/test_app/public/500.html +0 -66
- data/tmp/aruba/test_app/public/apple-touch-icon-precomposed.png +0 -0
- data/tmp/aruba/test_app/public/apple-touch-icon.png +0 -0
- data/tmp/aruba/test_app/public/favicon.ico +0 -0
- data/tmp/aruba/test_app/public/robots.txt +0 -1
- data/tmp/aruba/test_app/script/cucumber +0 -11
- data/tmp/aruba/test_app/test/application_system_test_case.rb +0 -5
- data/tmp/aruba/test_app/test/controllers/appointments_controller_test.rb +0 -48
- data/tmp/aruba/test_app/test/fixtures/appointments.yml +0 -9
- data/tmp/aruba/test_app/test/models/appointment_test.rb +0 -7
- data/tmp/aruba/test_app/test/system/appointments_test.rb +0 -45
- data/tmp/aruba/test_app/test/test_helper.rb +0 -10
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/0I/0I0oT83oN3NKiEi9XIhexiT3XgkA8mKyCbs25v3l20g.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/0W/0WnFNEwHN4bhDiFTvyMWURx02L4yP3gkP7vtjzKQFVo.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/2B/2Bg65dpvTdePrXa_wG6RsHpQzbqVSiHK0FVa0WdOJ4k.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/2r/2r_85kVmIcWzvJH72GapWtLDhaMP2HEziNxykyYpAUg.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/72/72jdZDzrM3-D_zYkIiPdAWQNeaFsqah154_QvcqWqTQ.cache +0 -3
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/99/99m8UCKl4j8IpsVOK8ltLHyNh8Ae0nHw3GBkC34V_co.cache +0 -2
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/9O/9OOXnKHBQnaCeE5HDe5csQsItouzWM6rTl8sESvkGTE.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/AF/AFloQwm_M7GZudPY87xx4TA0xEeuX9Psl0SJ94i5EyU.cache +0 -3
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/AP/APDAc8aUg_16wNWrVhCJcKeqbxyOScYGVhiDVgbrV7U.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/B4/B43LeT9Wba4fLvXw-C_kKq-x9HwYZxnBBiltbIufzzQ.cache +0 -2
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/EO/EOut5kyDPr7aKrHdvDsNJuYarA8XGnpAlDvBimlaC08.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/GJ/GJzxuc2i_d4Uhxs4IMnbQXhxBc9CTLrnQyzxwTqKOBw.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/Ge/Ge2oyaUStbQszLfXjgTi6LkncyS5SKfV8RJwbRA3HbI.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache +0 -2
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/Hv/HvPd_vK17QbhWq8QnCuyhqm0cPaGnHyO9lSzN-icQdg.cache +0 -2
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/II/IIhUO-5-DcfCyD_rVJeHjRMNVJxLmAmXP8i2XEjFpns.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/Ka/KaLHRsUYc4EUxUr4q_UhArFJUTF_EaBklpeU4TsE9SY.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/MZ/MZcwDENEs93Wd9q7A_7UWdfJrWsBXa0pGp03P9mqG2I.cache +0 -3
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/Nw/NwHea3ImBECnlmojPb9X9ZDfvRRuX_dX9sxISdtp9-A.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/PP/PPKuKT7m2PMDHVzBcYjePvXU6CbCW63Iqe3Q2a-Jdh8.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/RE/REtgGrS74n4Y7OKRcGvZsA2EUClg_RM66mVgGpySI20.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/Rk/RkQLRXSz5LhJQnH7BT-ZDkVK0Rx8N9KhcVwR2A1HY4M.cache +0 -2
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/Sx/SxtNEQ-KKVBCTtsDD-xf4oJEIdBPIHkGktnLXvG-GRk.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/TL/TLxLzqEAxKzTHH9EwSg5Lvcp3zgGuhjTjed121DSu9U.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/U1/U1D7nCXYBD3VlPnXGs_6mRtlhs-Gvv_vvCUYlTf4Grw.cache +0 -3
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/U6/U6pXyI-5haNcHRdsB-SoztzlXb98-256hFReXsL31J4.cache +0 -2
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/UE/UEKUaC9O_XBO5acP8HnxcJ1dtNM_1C7MTofkTQvPgRA.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/UV/UVcnI5bo-eQvULfmzeQUFVTDYEMF2cbAXpsOsh01XNY.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/WK/WK8RpMP5qb9GRQTsTHAzlfo8t2nsTLU6B8CQAc4UfOU.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/Xk/Xk8p9O39-syzKbpnoMRChld0TpoZFWlNIzeT5XKw2fQ.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/Zv/ZvCEW2ZyS-k4cHH7Gd8P2nKFE9Uh1VOrfR-1PYY2yz8.cache +0 -5
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/ac/acWu1-1ZAW1jRVKlHYlzlEg28lk-SdHfTq-P-viJMS0.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/b3/b3NiYrQOlN2zxiJYqbl4gmvK6it3Md9gSzAYgsIMhnY.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/c1/c1Pm-rFPEB3LXIjOtswD6x8SEAgI9y2BR16jc8ifcsc.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/em/emTQG2a9zF8NuvElLOnEpNJp0wq3_gVSDAM60vyXAzE.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/fX/fXH3Db_88TmJFhRydoFTx8tZbHAkLzK2ZZ0lsBEg8xA.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/gI/gIHntmCf7DbObPL_KZJYSgduAmqX18ZZPOtq85pn8vo.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/kP/kPwbLAUCLjv0x6fe5lvZpmUkgmvQSDHSdEOSdbMyDgY.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/kT/kT98Z_slHI6SgdEmoAtKAHyJQjTHdbe6GAbB27RP2uI.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/mt/mtT4Rwi7H_vHQXdxxPvvzhL4ziA7X9WK-JXzacxWlEA.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/mz/mzgD6X_N-fO95dP8Q1Q1sApCrbSmgPgsuEKv65KYcdo.cache +0 -3
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/oi/oiPhXw8pYdWv5T4qRFzePHaXZLI50xMvvTyfry-ILSo.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/r-/r--YB1ugrZ4F-ogbLLYNwIH3j9pQ2u_ZBjTJxoS7TrM.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/s6/s68UIyg0lNko7IA42JXv_wwy9Ea3WH-zc9h0GYPg88Y.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/si/siT97rfEKbIWcCj6KUBChX7kpRBKI2fAeGGwpsz0tTU.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/st/stqDgDfAemfEq7ZxlEj6YThpn8_1Nfw2bRVA0N03YTw.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/t9/t93lpjyly3MvgKs51_OlLXneJXGyYFGmshXsk4Wr69M.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/tE/tEy2QePsDnmFyyAQEric23sSBnfHBst3SEM7p-J7el8.cache +0 -2
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/tR/tRV7SyAY9c71G0o-8bElvNI76KcWhc5NVm48xflMPpM.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/tg/tggwa2O6A41xeZTK4SR0qcX0X55aOGg6q8ZWfqma1vM.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/uB/uBKOYcdzL_6Amevsu-uKAMTg7QGW5kgC0t5sAZINrcI.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/uE/uEyPXY2m04nerJV0pn3p-B-BlkJ08oufpQH1G2QXPw4.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/up/upyndqsU9bU6WV8qyMy7MLpcQoybRqgj-qA3C3pjzXY.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/ux/uxx-W2TOCdnAEGX0ZLThb_QIEbLYutX8qCwD0glYCKE.cache +0 -3
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/vC/vCsc-q2WmT8vWM2d2pb6_5hFav8mGlylwEKVWQvsumo.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/vc/vcgiILg1wO98x-a4kX678ASAFWA1cL0iVx07VkHLPqA.cache +0 -0
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/vu/vu6xNIGT6zorPmcKfd7edgxBltTmIRXU281uyK51kkU.cache +0 -1
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/w4/w4y_Lms54hD2Nivh5PHeccAmh2DX53sc_HDTQYNyNXw.cache +0 -3
- data/tmp/aruba/test_app/tmp/cache/assets/sprockets/v3.0/yZ/yZpoD5Zf4RAQoOwi5kMVksuta_0KhYSK_Yy_6Ykyt7E.cache +0 -1
- data/tmp/aruba/test_app/tmp/development_secret.txt +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e1cd2904e66669d6acf0468d21a4a3e28ac560bae247cf683f9c0e237e2cd11
|
4
|
+
data.tar.gz: 7edc69638a3946df0ac20707ce080c45361b8cab885171ba370191d84f5268b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eda48ea91bc84b2d3a4008dc8424c79e5ab3173dfaab739ed309f75619f8741899c12ba67c0d221be73aa6f052ebd7fe60e7cded149cfa4d4de19b59bfc3633e
|
7
|
+
data.tar.gz: 91f48677c021ad17c08b8a8fd50223c6942f7042ebfef1d68b3def47207cefecf73e45e5f955c881a3d180d9b8d821e87162bdd1dcaade16a702acbc66ed9bce
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,74 @@
|
|
1
1
|
Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CONTRIBUTING.md)
|
2
2
|
on how to contribute to Cucumber.
|
3
3
|
|
4
|
-
## [
|
4
|
+
## [main](https://github.com/cucumber/cucumber-rails/compare/v2.5.0...main) (Not yet released)
|
5
|
+
|
6
|
+
### New Features
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
### Changed
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
### Fixed
|
15
|
+
|
16
|
+
*
|
17
|
+
|
18
|
+
## [v2.5.0](https://github.com/cucumber/cucumber-rails/compare/v2.4.0...v2.5.0) (2022-03-07)
|
19
|
+
|
20
|
+
### New Features
|
21
|
+
|
22
|
+
* Added `:none` option for `javascript_strategy` which indicates no special handling of `@javascript` tagged tests ([#522](https://github.com/cucumber/cucumber-rails/pull/522) [akostadinov])
|
23
|
+
* Added support for Rails 7 ([#526](https://github.com/cucumber/cucumber-rails/pull/526/) [mgrunberg])
|
24
|
+
* Added Ruby 3.1 support ([#529](https://github.com/cucumber/cucumber-rails/pull/529) [mgrunberg])
|
25
|
+
|
26
|
+
### Changed
|
27
|
+
|
28
|
+
* Dropped Ruby 2.4 support ([#529](https://github.com/cucumber/cucumber-rails/pull/529) [mgrunberg])
|
29
|
+
|
30
|
+
## [v2.4.0](https://github.com/cucumber/cucumber-rails/compare/v2.3.0...v2.4.0) (2021-07-21)
|
31
|
+
|
32
|
+
### New Features
|
33
|
+
|
34
|
+
* Added new docker / Makefile script to permit releasing from repo ([#502](https://github.com/cucumber/cucumber-rails/pull/502) [luke-hill])
|
35
|
+
* Gem update: allowed cucumber 6/7 ([#515](https://github.com/cucumber/cucumber-rails/pull/515) /
|
36
|
+
[#519](https://github.com/cucumber/cucumber-rails/pull/519))
|
37
|
+
* Add support for Ruby 3 ([#517](https://github.com/cucumber/cucumber-rails/pull/517/))
|
38
|
+
|
39
|
+
### Changed
|
40
|
+
|
41
|
+
* Updated rubocop to use new major versions ([#504](https://github.com/cucumber/cucumber-rails/pull/504) /
|
42
|
+
[#519](https://github.com/cucumber/cucumber-rails/pull/519) [luke-hill])
|
43
|
+
|
44
|
+
### Removed
|
45
|
+
|
46
|
+
* Removed traces of legacy spork setup / help (No longer used) ([#518](https://github.com/cucumber/cucumber-rails/pull/518))
|
47
|
+
|
48
|
+
## [v2.3.0](https://github.com/cucumber/cucumber-rails/compare/v2.2.0...v2.3.0) (2021-03-30)
|
49
|
+
|
50
|
+
### Changed
|
51
|
+
|
52
|
+
* Changed dependency from rails to railties to avoid pulling in optional Rails gems like actioncable ([#486](https://github.com/cucumber/cucumber-rails/pull/486) [langalex])
|
53
|
+
|
54
|
+
* Lightened gem binary by removing un-needed files ([#496](https://github.com/cucumber/cucumber-rails/pull/496) [orien])
|
55
|
+
|
56
|
+
### Fixed
|
57
|
+
|
58
|
+
* Fixed up a couple of legacy capybara specs to use a better format ([#498](https://github.com/cucumber/cucumber-rails/pull/498) [luke-hill])
|
59
|
+
|
60
|
+
## [v2.2.0](https://github.com/cucumber/cucumber-rails/compare/v2.1.0...v2.2.0) (2020-08-10)
|
5
61
|
|
6
62
|
### New Features
|
7
63
|
|
8
64
|
* Added more documentation and tests around Javascript tagged scenarios
|
9
65
|
([#480](https://github.com/cucumber/cucumber-rails/pull/480) [luke-hill])
|
10
|
-
|
66
|
+
|
67
|
+
* Gem Updates
|
68
|
+
* Allowed cucumber5, updated other gem dependencies
|
69
|
+
* Updated travis runs and gem builds tested against
|
70
|
+
([#482](https://github.com/cucumber/cucumber-rails/pull/482) [luke-hill])
|
71
|
+
|
11
72
|
### Changed
|
12
73
|
|
13
74
|
* Dropped Rails 4.2 support ([#392](https://github.com/cucumber/cucumber-rails/pull/392) [deivid-rodriguez])
|
@@ -16,20 +77,23 @@ on how to contribute to Cucumber.
|
|
16
77
|
|
17
78
|
* Database cleaning no longer silently fails when using database_cleaner v2 adapter gems
|
18
79
|
([#467](https://github.com/cucumber/cucumber-rails/pull/467) [botandrose])
|
19
|
-
|
80
|
+
|
20
81
|
* Restored compatibility with `database_cleaner` versions earlier than 1.8.0.beta
|
21
82
|
([#473](https://github.com/cucumber/cucumber-rails/pull/473) [cgriego])
|
22
|
-
|
83
|
+
|
23
84
|
* Restored previous `database_cleaner` behavior for apps that do not use/load ActiveRecord
|
24
85
|
([#474](https://github.com/cucumber/cucumber-rails/pull/474) [cgriego])
|
25
86
|
|
87
|
+
* Restored previous compatibility around standard Rails Modules not being loaded
|
88
|
+
([#484](https://github.com/cucumber/cucumber-rails/pull/484) [Draiken])
|
89
|
+
|
26
90
|
## [v2.1.0](https://github.com/cucumber/cucumber-rails/compare/v2.0.0...v2.1.0) (2020-06-15)
|
27
91
|
|
28
92
|
### New Features
|
29
93
|
|
30
94
|
* Added metadata to allow gem to be searched / indexed by rubygems
|
31
95
|
([#447](https://github.com/cucumber/cucumber-rails/pull/447) [orien])
|
32
|
-
|
96
|
+
|
33
97
|
* Allow Cucumber 4 to be used as an option for cucumber-rails
|
34
98
|
* NB: Cucumber4 changes quite a lot of logic with auto-loaders. This means that any previous
|
35
99
|
logic that relied implicitly on load-order "may" be affected
|
@@ -42,10 +106,10 @@ on how to contribute to Cucumber.
|
|
42
106
|
* Refactored suite to remove a lot of old Rails3/4.0 "ism's"
|
43
107
|
* Also migrated a lot of old cucumber styles to cucumber4
|
44
108
|
([#441](https://github.com/cucumber/cucumber-rails/pull/441) [luke-hill])
|
45
|
-
|
109
|
+
|
46
110
|
* Refactored alias logic for overriding Rails methods to use `Module#prepend`
|
47
111
|
([#457](https://github.com/cucumber/cucumber-rails/pull/457) [wagenet])
|
48
|
-
|
112
|
+
|
49
113
|
* `database_cleaner` (when used), at a version `>= 1.8` will now silence all warnings
|
50
114
|
* The suite internally will only test a version `>= 1.8`, so other versions will work but are un-maintained
|
51
115
|
([#463](https://github.com/cucumber/cucumber-rails/pull/463) [deivid-rodriguez])
|
@@ -66,7 +130,7 @@ on how to contribute to Cucumber.
|
|
66
130
|
[#460](https://github.com/cucumber/cucumber-rails/pull/460) /
|
67
131
|
[#464](https://github.com/cucumber/cucumber-rails/pull/464)
|
68
132
|
[mvz] / [damonjmurray] / [deivid-rodriguez])
|
69
|
-
|
133
|
+
|
70
134
|
* Avoid printing a warning about `config.cache_classes` being set to `false` when
|
71
135
|
Spring is used ([#462](https://github.com/cucumber/cucumber-rails/pull/462) [janko])
|
72
136
|
|
@@ -82,7 +146,7 @@ on how to contribute to Cucumber.
|
|
82
146
|
|
83
147
|
* **Breaking change:** `web_steps` have been completely removed from cucumber-rails
|
84
148
|
([#437](https://github.com/cucumber/cucumber-rails/pull/437) [luke-hill])
|
85
|
-
|
149
|
+
|
86
150
|
* Altered some branching logic in tests designed to cater for old ruby/rails versions
|
87
151
|
([#433](https://github.com/cucumber/cucumber-rails/pull/433) [luke-hill])
|
88
152
|
|
@@ -91,14 +155,14 @@ on how to contribute to Cucumber.
|
|
91
155
|
### Changed
|
92
156
|
|
93
157
|
* Dropped Ruby 2.2 support (target 2.3 and up) ([#424](https://github.com/cucumber/cucumber-rails/pull/424) [mvz])
|
94
|
-
|
158
|
+
|
95
159
|
* Begin to update the core runtime / development dependencies to something a little more recent
|
96
160
|
([#413](https://github.com/cucumber/cucumber-rails/pull/413) /
|
97
161
|
[#431](https://github.com/cucumber/cucumber-rails/pull/431) /
|
98
162
|
[#432](https://github.com/cucumber/cucumber-rails/pull/432)
|
99
|
-
[mvz] /
|
163
|
+
[mvz] /
|
100
164
|
[luke-hill])
|
101
|
-
|
165
|
+
|
102
166
|
### Fixed
|
103
167
|
|
104
168
|
* Various rubocop / styling issues that had built up over time
|
@@ -110,21 +174,21 @@ on how to contribute to Cucumber.
|
|
110
174
|
[#421](https://github.com/cucumber/cucumber-rails/pull/434)
|
111
175
|
[luke-hill] /
|
112
176
|
[mvz])
|
113
|
-
|
177
|
+
|
114
178
|
* Generic Travis Healthcheck (Fixed up polluted logs and use newer Ubuntu OS)
|
115
179
|
([#415](https://github.com/cucumber/cucumber-rails/pull/415) /
|
116
180
|
[#417](https://github.com/cucumber/cucumber-rails/pull/417)
|
117
181
|
[luke-hill])
|
118
|
-
|
182
|
+
|
119
183
|
* Rails6 not building correctly
|
120
184
|
([#418](https://github.com/cucumber/cucumber-rails/pull/418)
|
121
185
|
[luke-hill])
|
122
|
-
|
186
|
+
|
123
187
|
* Provisional Ruby 2.7 builds not working
|
124
188
|
([#427](https://github.com/cucumber/cucumber-rails/pull/427)
|
125
189
|
[amatsuda] /
|
126
190
|
[luke-hill])
|
127
|
-
|
191
|
+
|
128
192
|
## [v1.7.0](https://github.com/cucumber/cucumber-rails/compare/v1.6.0...v1.7.0) (2019-04-17)
|
129
193
|
|
130
194
|
### Changed
|
@@ -144,7 +208,7 @@ on how to contribute to Cucumber.
|
|
144
208
|
[xtrasimplicity] /
|
145
209
|
[deivid-rodriguez] /
|
146
210
|
[mvz])
|
147
|
-
|
211
|
+
|
148
212
|
* Various build issues that had built up over the previous year
|
149
213
|
([#403](https://github.com/cucumber/cucumber-rails/pull/403) /
|
150
214
|
[#404](https://github.com/cucumber/cucumber-rails/pull/404) /
|
@@ -164,7 +228,7 @@ on how to contribute to Cucumber.
|
|
164
228
|
* Switched to Ruby 1.9 hash syntax. ([#371](https://github.com/cucumber/cucumber-rails/pull/371) [mvz](https://github.com/mvz))
|
165
229
|
* Added support to handle rerun files with multiple lines. ([#373]((https://github.com/cucumber/cucumber-rails/pull/345)) [mvz](https://github.com/mvz))
|
166
230
|
* Added support for Rails 5.2 and Capybara 3. ([#378](https://github.com/cucumber/cucumber-rails/pull/378/) [gobijan](https://github.com/gobijan), [radar](https://github.com/radar), [xtrasimplicity](https://github.com/xtrasimplicity))
|
167
|
-
|
231
|
+
|
168
232
|
### Fixed
|
169
233
|
|
170
234
|
* Fix typo ([#343](https://github.com/cucumber/cucumber-rails/pull/343) Olle Jonsson)
|
@@ -179,7 +243,7 @@ on how to contribute to Cucumber.
|
|
179
243
|
## [v1.4.5](https://github.com/cucumber/cucumber-rails/compare/1.4.4...1.4.5) (2016-09-27)
|
180
244
|
|
181
245
|
* Add support for Cucumber 3+ (Steve Tooke)
|
182
|
-
|
246
|
+
|
183
247
|
## [v1.4.4](https://github.com/cucumber/cucumber-rails/compare/1.4.3...1.4.4) (2016-08-05)
|
184
248
|
|
185
249
|
* Ensure support for Rails 5
|
@@ -629,3 +693,6 @@ and to celebrate that cucumber-rails now supports Capybara as an alternative to
|
|
629
693
|
[wagenet]: https://github.com/wagenet
|
630
694
|
[cgriego]: https://github.com/cgriego
|
631
695
|
[botandrose]: https://github.com/botandrose
|
696
|
+
[Draiken]: https://github.com/Draiken
|
697
|
+
[langalex]: https://github.com/langalex
|
698
|
+
[orien]: https://github.com/orien
|
data/README.md
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
# Cucumber-Rails
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/cucumber-rails.svg)](http://badge.fury.io/rb/cucumber-rails)
|
4
|
-
[![Build Status](https://
|
4
|
+
[![Build Status](https://github.com/cucumber/cucumber-rails/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/cucumber/cucumber-rails/actions/workflows/build.yml)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/cucumber/cucumber-rails.svg)](https://codeclimate.com/github/cucumber/cucumber-rails)
|
6
6
|
[![Open Source Helpers](https://www.codetriage.com/cucumber/cucumber-rails/badges/users.svg)](https://www.codetriage.com/cucumber/cucumber-rails)
|
7
|
+
[![pull requests](https://oselvar.com/api/badge?label=pull%20requests&csvUrl=https%3A%2F%2Fraw.githubusercontent.com%2Fcucumber%2Foselvar-github-metrics%2Fmain%2Fdata%2Fcucumber%2Fcucumber-rails%2FpullRequests.csv)](https://oselvar.com/github/cucumber/oselvar-github-metrics/main/cucumber/cucumber-rails)
|
8
|
+
[![issues](https://oselvar.com/api/badge?label=issues&csvUrl=https%3A%2F%2Fraw.githubusercontent.com%2Fcucumber%2Foselvar-github-metrics%2Fmain%2Fdata%2Fcucumber%2Fcucumber-rails%2Fissues.csv)](https://oselvar.com/github/cucumber/oselvar-github-metrics/main/cucumber/cucumber-rails)
|
7
9
|
|
8
|
-
Cucumber-Rails brings Cucumber to Rails 5.x and
|
10
|
+
Cucumber-Rails brings Cucumber to Rails 5.x, 6.x and 7.x.
|
9
11
|
|
10
12
|
## Installation
|
11
13
|
|
@@ -123,14 +125,3 @@ For example, rspec is a primary development dependency, so it lives in the gemsp
|
|
123
125
|
|
124
126
|
[the helper]: https://github.com/cucumber/cucumber-rails/blob/5e37c530560ae1c1a79521c38a54bae0be94242b/features/step_definitions/cucumber_rails_steps.rb#L15
|
125
127
|
|
126
|
-
### NOTE
|
127
|
-
|
128
|
-
If you get an error while trying to run the tests locally, similar to the one below:
|
129
|
-
|
130
|
-
Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
|
131
|
-
|
132
|
-
You need to install a javascript runtime.
|
133
|
-
|
134
|
-
You can do that in ubuntu by using:
|
135
|
-
|
136
|
-
sudo apt-get install nodejs
|
@@ -7,27 +7,42 @@ module Cucumber
|
|
7
7
|
module SelectDatesAndTimes
|
8
8
|
# Select a Rails date. Options hash must include from: +label+
|
9
9
|
def select_date(date, options)
|
10
|
-
date
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
10
|
+
date = Date.parse(date)
|
11
|
+
if ::Rails::VERSION::MAJOR >= 7
|
12
|
+
# Rails 7 generates date fields using input type="date". Capybara support's them
|
13
|
+
fill_in options[:from], with: date
|
14
|
+
else
|
15
|
+
base_dom_id = get_base_dom_id_from_label_tag(options[:from])
|
16
|
+
|
17
|
+
find(:xpath, ".//select[@id='#{base_dom_id}_1i']").select(date.year.to_s)
|
18
|
+
find(:xpath, ".//select[@id='#{base_dom_id}_2i']").select(I18n.l(date, format: '%B'))
|
19
|
+
find(:xpath, ".//select[@id='#{base_dom_id}_3i']").select(date.day.to_s)
|
20
|
+
end
|
16
21
|
end
|
17
22
|
|
18
23
|
# Select a Rails time. Options hash must include from: +label+
|
19
24
|
def select_time(time, options)
|
20
|
-
time
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
+
time = Time.zone.parse(time)
|
26
|
+
if ::Rails::VERSION::MAJOR >= 7
|
27
|
+
# Rails 7 generates date fields using input type="time". Capybara support's them
|
28
|
+
fill_in options[:from], with: time
|
29
|
+
else
|
30
|
+
base_dom_id = get_base_dom_id_from_label_tag(options[:from])
|
31
|
+
|
32
|
+
find(:xpath, ".//select[@id='#{base_dom_id}_4i']").select(time.hour.to_s.rjust(2, '0'))
|
33
|
+
find(:xpath, ".//select[@id='#{base_dom_id}_5i']").select(time.min.to_s.rjust(2, '0'))
|
34
|
+
end
|
25
35
|
end
|
26
36
|
|
27
37
|
# Select a Rails datetime. Options hash must include from: +label+
|
28
38
|
def select_datetime(datetime, options)
|
29
|
-
|
30
|
-
|
39
|
+
if ::Rails::VERSION::MAJOR >= 7
|
40
|
+
# Rails 7 generates datetime fields using input type="datetime-local". Capybara support's them
|
41
|
+
fill_in options[:from], with: DateTime.parse(datetime)
|
42
|
+
else
|
43
|
+
select_date(datetime, options)
|
44
|
+
select_time(datetime, options)
|
45
|
+
end
|
31
46
|
end
|
32
47
|
|
33
48
|
private
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Cucumber
|
2
4
|
module Rails
|
3
5
|
module Database
|
@@ -8,6 +10,8 @@ module Cucumber
|
|
8
10
|
|
9
11
|
def before_js(strategy)
|
10
12
|
@original_strategy = if defined?(DatabaseCleaner::VERSION) && Gem::Version.new(DatabaseCleaner::VERSION) >= Gem::Version.new('1.8.0.beta')
|
13
|
+
raise "No DatabaseCleaner strategies found. Make sure you have required one of DatabaseCleaner's adapters" if DatabaseCleaner.cleaners.empty?
|
14
|
+
|
11
15
|
DatabaseCleaner.cleaners.values.first.strategy # that feels like a nasty hack
|
12
16
|
else
|
13
17
|
DatabaseCleaner.connections.first.strategy # that feels like a nasty hack
|
data/lib/cucumber/rails.rb
CHANGED
@@ -24,6 +24,7 @@ if called_from_env_rb
|
|
24
24
|
require 'cucumber/rails/capybara'
|
25
25
|
require 'cucumber/rails/database/strategy'
|
26
26
|
require 'cucumber/rails/database/deletion_strategy'
|
27
|
+
require 'cucumber/rails/database/null_strategy'
|
27
28
|
require 'cucumber/rails/database/shared_connection_strategy'
|
28
29
|
require 'cucumber/rails/database/truncation_strategy'
|
29
30
|
require 'cucumber/rails/database'
|
@@ -8,10 +8,6 @@ module Cucumber
|
|
8
8
|
|
9
9
|
DEFAULT_SHEBANG = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
|
10
10
|
|
11
|
-
class_option :spork,
|
12
|
-
type: :boolean,
|
13
|
-
desc: 'Use Spork'
|
14
|
-
|
15
11
|
class_option :skip_database,
|
16
12
|
type: :boolean,
|
17
13
|
desc: 'Skip modification of database.yml',
|
@@ -34,11 +30,16 @@ module Cucumber
|
|
34
30
|
|
35
31
|
def create_feature_support
|
36
32
|
empty_directory 'features/support'
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
33
|
+
template 'support/rails.rb.erb', 'features/support/env.rb'
|
34
|
+
end
|
35
|
+
|
36
|
+
def configure_environment
|
37
|
+
environment(<<~CONFIG, env: %w[development test]) if ::Rails::VERSION::MAJOR >= 6
|
38
|
+
# Configure 'rails notes' to inspect Cucumber files
|
39
|
+
config.annotations.register_directories('features')
|
40
|
+
config.annotations.register_extensions('feature') { |tag| /#\\s*(\#{tag}):?\\s*(.*)$/ }
|
41
|
+
|
42
|
+
CONFIG
|
42
43
|
end
|
43
44
|
|
44
45
|
def create_tasks
|
@@ -59,20 +60,16 @@ module Cucumber
|
|
59
60
|
|
60
61
|
protected
|
61
62
|
|
62
|
-
def spork?
|
63
|
-
options[:spork]
|
64
|
-
end
|
65
|
-
|
66
63
|
def embed_file(source, indent = '')
|
67
|
-
|
64
|
+
File.read(File.join(self.class.source_root, source)).gsub(/^/, indent)
|
68
65
|
end
|
69
66
|
|
70
67
|
def embed_template(source, indent = '')
|
71
68
|
template = File.join(self.class.source_root, source)
|
72
69
|
if RUBY_VERSION >= '2.6'
|
73
|
-
ERB.new(
|
70
|
+
ERB.new(File.read(template), trim_mode: '-').result(binding).gsub(/^/, indent)
|
74
71
|
else
|
75
|
-
ERB.new(
|
72
|
+
ERB.new(File.read(template), nil, '-').result(binding).gsub(/^/, indent)
|
76
73
|
end
|
77
74
|
end
|
78
75
|
end
|
@@ -4,6 +4,6 @@ rerun = rerun.strip.gsub /\s/, ' '
|
|
4
4
|
rerun_opts = rerun.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
|
5
5
|
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags 'not @wip'"
|
6
6
|
%>
|
7
|
-
default:
|
8
|
-
wip:
|
9
|
-
rerun:
|
7
|
+
default: <%%= std_opts %> features
|
8
|
+
wip: --tags @wip:3 --wip features
|
9
|
+
rerun: <%%= rerun_opts %> --format rerun --out rerun.txt --strict --tags 'not @wip'
|
@@ -35,6 +35,7 @@ begin
|
|
35
35
|
::STATS_DIRECTORIES << %w(Cucumber\ features features) if File.exist?('features')
|
36
36
|
::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features')
|
37
37
|
end
|
38
|
+
<% if ::Rails::VERSION::MAJOR < 6 %>
|
38
39
|
|
39
40
|
task :annotations_setup do
|
40
41
|
Rails.application.configure do
|
@@ -44,7 +45,9 @@ begin
|
|
44
45
|
end
|
45
46
|
end
|
46
47
|
end
|
48
|
+
<% end %>
|
47
49
|
end
|
50
|
+
|
48
51
|
desc 'Alias for cucumber:ok'
|
49
52
|
task cucumber: 'cucumber:ok'
|
50
53
|
|
@@ -60,7 +63,9 @@ begin
|
|
60
63
|
|
61
64
|
task stats: 'cucumber:statsetup'
|
62
65
|
|
66
|
+
<% if ::Rails::VERSION::MAJOR < 6 %>
|
63
67
|
task notes: 'cucumber:annotations_setup'
|
68
|
+
<% end %>
|
64
69
|
rescue LoadError
|
65
70
|
desc 'cucumber rake task not available (cucumber not installed)'
|
66
71
|
task :cucumber do
|