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
data/spec/examples.txt
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
example_id | status | run_time |
|
2
|
-
------------------------------------------------------------- | ------ | --------------- |
|
3
|
-
./spec/cucumber/rails/database_spec.rb[1:1:1] | passed | 0.00057 seconds |
|
4
|
-
./spec/cucumber/rails/database_spec.rb[1:1:2] | passed | 0.00845 seconds |
|
5
|
-
./spec/cucumber/rails/database_spec.rb[1:2:1] | passed | 0.00046 seconds |
|
6
|
-
./spec/cucumber/rails/database_spec.rb[1:3:1] | passed | 0.00683 seconds |
|
7
|
-
./spec/cucumber/rails/database_spec.rb[1:3:2] | passed | 0.00494 seconds |
|
8
|
-
./spec/cucumber/rails/database_spec.rb[1:4:1] | passed | 0.69664 seconds |
|
9
|
-
./spec/generators/cucumber/install_generator_spec.rb[1:1:1:1] | passed | 0.0271 seconds |
|
10
|
-
./spec/generators/cucumber/install_generator_spec.rb[1:1:1:2] | passed | 0.0285 seconds |
|
11
|
-
./spec/generators/cucumber/install_generator_spec.rb[1:1:2:1] | passed | 0.05333 seconds |
|
12
|
-
./spec/generators/cucumber/install_generator_spec.rb[1:1:3:1] | passed | 0.02378 seconds |
|
13
|
-
./spec/generators/cucumber/install_generator_spec.rb[1:1:3:2] | passed | 0.04247 seconds |
|
14
|
-
./spec/generators/cucumber/install_generator_spec.rb[1:1:3:3] | passed | 0.05091 seconds |
|
15
|
-
./spec/generators/cucumber/install_generator_spec.rb[1:1:4:1] | passed | 0.04202 seconds |
|
16
|
-
./spec/generators/cucumber/install_generator_spec.rb[1:1:4:2] | passed | 0.04029 seconds |
|
17
|
-
./spec/generators/cucumber/install_generator_spec.rb[1:1:4:3] | passed | 0.01359 seconds |
|
18
|
-
./spec/generators/cucumber/install_generator_spec.rb[1:1:5:1] | passed | 0.04387 seconds |
|
19
|
-
./spec/generators/cucumber/install_generator_spec.rb[1:1:5:2] | passed | 0.03496 seconds |
|
@@ -1,55 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Generators are not automatically loaded by Rails
|
4
|
-
require 'generators/cucumber/install_generator'
|
5
|
-
|
6
|
-
describe Cucumber::InstallGenerator do
|
7
|
-
# Tell the generator where to put its output (what it thinks of as Rails.root)
|
8
|
-
destination File.expand_path('../../../../tmp', __dir__)
|
9
|
-
|
10
|
-
before { prepare_destination }
|
11
|
-
|
12
|
-
let(:auto_generated_message) do
|
13
|
-
'# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.'
|
14
|
-
end
|
15
|
-
|
16
|
-
context 'without arguments' do
|
17
|
-
before { run_generator }
|
18
|
-
|
19
|
-
describe 'config/cucumber.yml' do
|
20
|
-
subject { file('config/cucumber.yml') }
|
21
|
-
|
22
|
-
it { is_expected.to exist }
|
23
|
-
it { is_expected.to contain 'default: <%= std_opts %> features' }
|
24
|
-
end
|
25
|
-
|
26
|
-
describe 'features/step_definitions folder' do
|
27
|
-
subject { file('features/step_definitions') }
|
28
|
-
|
29
|
-
it { is_expected.to exist }
|
30
|
-
end
|
31
|
-
|
32
|
-
describe 'features/support/env.rb' do
|
33
|
-
subject { file('features/support/env.rb') }
|
34
|
-
|
35
|
-
it { is_expected.to exist }
|
36
|
-
it { is_expected.to contain auto_generated_message }
|
37
|
-
it { is_expected.to contain "require 'cucumber/rails'" }
|
38
|
-
end
|
39
|
-
|
40
|
-
describe 'lib/tasks/cucumber.rake' do
|
41
|
-
subject { file('lib/tasks/cucumber.rake') }
|
42
|
-
|
43
|
-
it { is_expected.to exist }
|
44
|
-
it { is_expected.to contain auto_generated_message }
|
45
|
-
it { is_expected.to contain "task cucumber: 'cucumber:ok'" }
|
46
|
-
end
|
47
|
-
|
48
|
-
describe 'script/cucumber' do
|
49
|
-
subject { file('script/cucumber') }
|
50
|
-
|
51
|
-
it { is_expected.to exist }
|
52
|
-
it { is_expected.to contain 'load Cucumber::BINARY' }
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
data/spec/spec_helper.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'rspec/rails/fixture_support'
|
4
|
-
require 'rails/all'
|
5
|
-
|
6
|
-
ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:'
|
7
|
-
|
8
|
-
module CucumberRails
|
9
|
-
class Application < ::Rails::Application
|
10
|
-
config.secret_key_base = 'ASecretString'
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
require 'rspec/support/spec'
|
15
|
-
require 'rspec/rails'
|
16
|
-
require 'ammeter/init'
|
data/tmp/aruba/test_app/Gemfile
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
3
|
-
|
4
|
-
ruby '2.5.8'
|
5
|
-
|
6
|
-
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
7
|
-
gem 'rails', '~> 5.2.4', '>= 5.2.4.3'
|
8
|
-
# Use sqlite3 as the database for Active Record
|
9
|
-
gem 'sqlite3', "~> 1.3.13"
|
10
|
-
|
11
|
-
# Use Puma as the app server
|
12
|
-
gem 'puma', '~> 3.11'
|
13
|
-
# Use SCSS for stylesheets
|
14
|
-
gem 'sass-rails', '~> 5.0'
|
15
|
-
# Use Uglifier as compressor for JavaScript assets
|
16
|
-
gem 'uglifier', '>= 1.3.0'
|
17
|
-
# See https://github.com/rails/execjs#readme for more supported runtimes
|
18
|
-
# gem 'mini_racer', platforms: :ruby
|
19
|
-
|
20
|
-
# Use CoffeeScript for .coffee assets and views
|
21
|
-
gem 'coffee-rails', '~> 4.2'
|
22
|
-
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
23
|
-
gem 'turbolinks', '~> 5'
|
24
|
-
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
25
|
-
gem 'jbuilder', '~> 2.5'
|
26
|
-
# Use Redis adapter to run Action Cable in production
|
27
|
-
# gem 'redis', '~> 4.0'
|
28
|
-
# Use ActiveModel has_secure_password
|
29
|
-
# gem 'bcrypt', '~> 3.1.7'
|
30
|
-
|
31
|
-
# Use ActiveStorage variant
|
32
|
-
# gem 'mini_magick', '~> 4.8'
|
33
|
-
|
34
|
-
# Use Capistrano for deployment
|
35
|
-
# gem 'capistrano-rails', group: :development
|
36
|
-
|
37
|
-
group :development, :test do
|
38
|
-
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
39
|
-
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
40
|
-
end
|
41
|
-
|
42
|
-
group :development do
|
43
|
-
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
|
44
|
-
gem 'web-console', '>= 3.3.0'
|
45
|
-
gem 'listen', '>= 3.0.5', '< 3.2'
|
46
|
-
end
|
47
|
-
|
48
|
-
group :test do
|
49
|
-
# Adds support for Capybara system testing and selenium driver
|
50
|
-
gem 'capybara', group: :test
|
51
|
-
|
52
|
-
gem 'selenium-webdriver', "~> 3.11", group: :test
|
53
|
-
|
54
|
-
# Easy installation and use of chromedriver to run system tests with Chrome
|
55
|
-
gem 'chromedriver-helper'
|
56
|
-
end
|
57
|
-
|
58
|
-
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
59
|
-
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
60
|
-
gem 'cucumber-rails', group: :test, require: false, path: "/home/luke/Code/cucumber-rails"
|
61
|
-
gem 'rspec-expectations', "~> 3.7", group: :test
|
62
|
-
gem 'factory_bot', ">= 3.2", group: :test
|
@@ -1,249 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: /home/luke/Code/cucumber-rails
|
3
|
-
specs:
|
4
|
-
cucumber-rails (2.1.0)
|
5
|
-
capybara (>= 2.12, < 4)
|
6
|
-
cucumber (>= 3.0.2, < 4)
|
7
|
-
mime-types (>= 2.0, < 4)
|
8
|
-
nokogiri (~> 1.8)
|
9
|
-
rails (>= 5.0, < 7)
|
10
|
-
|
11
|
-
GEM
|
12
|
-
remote: https://rubygems.org/
|
13
|
-
specs:
|
14
|
-
actioncable (5.2.4.3)
|
15
|
-
actionpack (= 5.2.4.3)
|
16
|
-
nio4r (~> 2.0)
|
17
|
-
websocket-driver (>= 0.6.1)
|
18
|
-
actionmailer (5.2.4.3)
|
19
|
-
actionpack (= 5.2.4.3)
|
20
|
-
actionview (= 5.2.4.3)
|
21
|
-
activejob (= 5.2.4.3)
|
22
|
-
mail (~> 2.5, >= 2.5.4)
|
23
|
-
rails-dom-testing (~> 2.0)
|
24
|
-
actionpack (5.2.4.3)
|
25
|
-
actionview (= 5.2.4.3)
|
26
|
-
activesupport (= 5.2.4.3)
|
27
|
-
rack (~> 2.0, >= 2.0.8)
|
28
|
-
rack-test (>= 0.6.3)
|
29
|
-
rails-dom-testing (~> 2.0)
|
30
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
31
|
-
actionview (5.2.4.3)
|
32
|
-
activesupport (= 5.2.4.3)
|
33
|
-
builder (~> 3.1)
|
34
|
-
erubi (~> 1.4)
|
35
|
-
rails-dom-testing (~> 2.0)
|
36
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
37
|
-
activejob (5.2.4.3)
|
38
|
-
activesupport (= 5.2.4.3)
|
39
|
-
globalid (>= 0.3.6)
|
40
|
-
activemodel (5.2.4.3)
|
41
|
-
activesupport (= 5.2.4.3)
|
42
|
-
activerecord (5.2.4.3)
|
43
|
-
activemodel (= 5.2.4.3)
|
44
|
-
activesupport (= 5.2.4.3)
|
45
|
-
arel (>= 9.0)
|
46
|
-
activestorage (5.2.4.3)
|
47
|
-
actionpack (= 5.2.4.3)
|
48
|
-
activerecord (= 5.2.4.3)
|
49
|
-
marcel (~> 0.3.1)
|
50
|
-
activesupport (5.2.4.3)
|
51
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
52
|
-
i18n (>= 0.7, < 2)
|
53
|
-
minitest (~> 5.1)
|
54
|
-
tzinfo (~> 1.1)
|
55
|
-
addressable (2.7.0)
|
56
|
-
public_suffix (>= 2.0.2, < 5.0)
|
57
|
-
archive-zip (0.12.0)
|
58
|
-
io-like (~> 0.3.0)
|
59
|
-
arel (9.0.0)
|
60
|
-
backports (3.18.1)
|
61
|
-
bindex (0.8.1)
|
62
|
-
builder (3.2.4)
|
63
|
-
byebug (11.1.3)
|
64
|
-
capybara (3.33.0)
|
65
|
-
addressable
|
66
|
-
mini_mime (>= 0.1.3)
|
67
|
-
nokogiri (~> 1.8)
|
68
|
-
rack (>= 1.6.0)
|
69
|
-
rack-test (>= 0.6.3)
|
70
|
-
regexp_parser (~> 1.5)
|
71
|
-
xpath (~> 3.2)
|
72
|
-
childprocess (3.0.0)
|
73
|
-
chromedriver-helper (2.1.1)
|
74
|
-
archive-zip (~> 0.10)
|
75
|
-
nokogiri (~> 1.8)
|
76
|
-
coffee-rails (4.2.2)
|
77
|
-
coffee-script (>= 2.2.0)
|
78
|
-
railties (>= 4.0.0)
|
79
|
-
coffee-script (2.4.1)
|
80
|
-
coffee-script-source
|
81
|
-
execjs
|
82
|
-
coffee-script-source (1.12.2)
|
83
|
-
concurrent-ruby (1.1.7)
|
84
|
-
crass (1.0.6)
|
85
|
-
cucumber (3.2.0)
|
86
|
-
builder (>= 2.1.2)
|
87
|
-
cucumber-core (~> 3.2.0)
|
88
|
-
cucumber-expressions (~> 6.0.1)
|
89
|
-
cucumber-wire (~> 0.0.1)
|
90
|
-
diff-lcs (~> 1.3)
|
91
|
-
gherkin (~> 5.1.0)
|
92
|
-
multi_json (>= 1.7.5, < 2.0)
|
93
|
-
multi_test (>= 0.1.2)
|
94
|
-
cucumber-core (3.2.1)
|
95
|
-
backports (>= 3.8.0)
|
96
|
-
cucumber-tag_expressions (~> 1.1.0)
|
97
|
-
gherkin (~> 5.0)
|
98
|
-
cucumber-expressions (6.0.1)
|
99
|
-
cucumber-tag_expressions (1.1.1)
|
100
|
-
cucumber-wire (0.0.1)
|
101
|
-
diff-lcs (1.4.4)
|
102
|
-
erubi (1.9.0)
|
103
|
-
execjs (2.7.0)
|
104
|
-
factory_bot (6.1.0)
|
105
|
-
activesupport (>= 5.0.0)
|
106
|
-
ffi (1.13.1)
|
107
|
-
gherkin (5.1.0)
|
108
|
-
globalid (0.4.2)
|
109
|
-
activesupport (>= 4.2.0)
|
110
|
-
i18n (1.8.5)
|
111
|
-
concurrent-ruby (~> 1.0)
|
112
|
-
io-like (0.3.1)
|
113
|
-
jbuilder (2.10.0)
|
114
|
-
activesupport (>= 5.0.0)
|
115
|
-
listen (3.1.5)
|
116
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
117
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
118
|
-
ruby_dep (~> 1.2)
|
119
|
-
loofah (2.6.0)
|
120
|
-
crass (~> 1.0.2)
|
121
|
-
nokogiri (>= 1.5.9)
|
122
|
-
mail (2.7.1)
|
123
|
-
mini_mime (>= 0.1.1)
|
124
|
-
marcel (0.3.3)
|
125
|
-
mimemagic (~> 0.3.2)
|
126
|
-
method_source (1.0.0)
|
127
|
-
mime-types (3.3.1)
|
128
|
-
mime-types-data (~> 3.2015)
|
129
|
-
mime-types-data (3.2020.0512)
|
130
|
-
mimemagic (0.3.5)
|
131
|
-
mini_mime (1.0.2)
|
132
|
-
mini_portile2 (2.4.0)
|
133
|
-
minitest (5.14.1)
|
134
|
-
multi_json (1.15.0)
|
135
|
-
multi_test (0.1.2)
|
136
|
-
nio4r (2.5.2)
|
137
|
-
nokogiri (1.10.10)
|
138
|
-
mini_portile2 (~> 2.4.0)
|
139
|
-
public_suffix (4.0.5)
|
140
|
-
puma (3.12.6)
|
141
|
-
rack (2.2.3)
|
142
|
-
rack-test (1.1.0)
|
143
|
-
rack (>= 1.0, < 3)
|
144
|
-
rails (5.2.4.3)
|
145
|
-
actioncable (= 5.2.4.3)
|
146
|
-
actionmailer (= 5.2.4.3)
|
147
|
-
actionpack (= 5.2.4.3)
|
148
|
-
actionview (= 5.2.4.3)
|
149
|
-
activejob (= 5.2.4.3)
|
150
|
-
activemodel (= 5.2.4.3)
|
151
|
-
activerecord (= 5.2.4.3)
|
152
|
-
activestorage (= 5.2.4.3)
|
153
|
-
activesupport (= 5.2.4.3)
|
154
|
-
bundler (>= 1.3.0)
|
155
|
-
railties (= 5.2.4.3)
|
156
|
-
sprockets-rails (>= 2.0.0)
|
157
|
-
rails-dom-testing (2.0.3)
|
158
|
-
activesupport (>= 4.2.0)
|
159
|
-
nokogiri (>= 1.6)
|
160
|
-
rails-html-sanitizer (1.3.0)
|
161
|
-
loofah (~> 2.3)
|
162
|
-
railties (5.2.4.3)
|
163
|
-
actionpack (= 5.2.4.3)
|
164
|
-
activesupport (= 5.2.4.3)
|
165
|
-
method_source
|
166
|
-
rake (>= 0.8.7)
|
167
|
-
thor (>= 0.19.0, < 2.0)
|
168
|
-
rake (13.0.1)
|
169
|
-
rb-fsevent (0.10.4)
|
170
|
-
rb-inotify (0.10.1)
|
171
|
-
ffi (~> 1.0)
|
172
|
-
regexp_parser (1.7.1)
|
173
|
-
rspec-expectations (3.9.2)
|
174
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
175
|
-
rspec-support (~> 3.9.0)
|
176
|
-
rspec-support (3.9.3)
|
177
|
-
ruby_dep (1.5.0)
|
178
|
-
rubyzip (2.3.0)
|
179
|
-
sass (3.7.4)
|
180
|
-
sass-listen (~> 4.0.0)
|
181
|
-
sass-listen (4.0.0)
|
182
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
183
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
184
|
-
sass-rails (5.1.0)
|
185
|
-
railties (>= 5.2.0)
|
186
|
-
sass (~> 3.1)
|
187
|
-
sprockets (>= 2.8, < 4.0)
|
188
|
-
sprockets-rails (>= 2.0, < 4.0)
|
189
|
-
tilt (>= 1.1, < 3)
|
190
|
-
selenium-webdriver (3.142.7)
|
191
|
-
childprocess (>= 0.5, < 4.0)
|
192
|
-
rubyzip (>= 1.2.2)
|
193
|
-
sprockets (3.7.2)
|
194
|
-
concurrent-ruby (~> 1.0)
|
195
|
-
rack (> 1, < 3)
|
196
|
-
sprockets-rails (3.2.1)
|
197
|
-
actionpack (>= 4.0)
|
198
|
-
activesupport (>= 4.0)
|
199
|
-
sprockets (>= 3.0.0)
|
200
|
-
sqlite3 (1.3.13)
|
201
|
-
thor (1.0.1)
|
202
|
-
thread_safe (0.3.6)
|
203
|
-
tilt (2.0.10)
|
204
|
-
turbolinks (5.2.1)
|
205
|
-
turbolinks-source (~> 5.2)
|
206
|
-
turbolinks-source (5.2.0)
|
207
|
-
tzinfo (1.2.7)
|
208
|
-
thread_safe (~> 0.1)
|
209
|
-
uglifier (4.2.0)
|
210
|
-
execjs (>= 0.3.0, < 3)
|
211
|
-
web-console (3.7.0)
|
212
|
-
actionview (>= 5.0)
|
213
|
-
activemodel (>= 5.0)
|
214
|
-
bindex (>= 0.4.0)
|
215
|
-
railties (>= 5.0)
|
216
|
-
websocket-driver (0.7.3)
|
217
|
-
websocket-extensions (>= 0.1.0)
|
218
|
-
websocket-extensions (0.1.5)
|
219
|
-
xpath (3.2.0)
|
220
|
-
nokogiri (~> 1.8)
|
221
|
-
|
222
|
-
PLATFORMS
|
223
|
-
ruby
|
224
|
-
|
225
|
-
DEPENDENCIES
|
226
|
-
byebug
|
227
|
-
capybara
|
228
|
-
chromedriver-helper
|
229
|
-
coffee-rails (~> 4.2)
|
230
|
-
cucumber-rails!
|
231
|
-
factory_bot (>= 3.2)
|
232
|
-
jbuilder (~> 2.5)
|
233
|
-
listen (>= 3.0.5, < 3.2)
|
234
|
-
puma (~> 3.11)
|
235
|
-
rails (~> 5.2.4, >= 5.2.4.3)
|
236
|
-
rspec-expectations (~> 3.7)
|
237
|
-
sass-rails (~> 5.0)
|
238
|
-
selenium-webdriver (~> 3.11)
|
239
|
-
sqlite3 (~> 1.3.13)
|
240
|
-
turbolinks (~> 5)
|
241
|
-
tzinfo-data
|
242
|
-
uglifier (>= 1.3.0)
|
243
|
-
web-console (>= 3.3.0)
|
244
|
-
|
245
|
-
RUBY VERSION
|
246
|
-
ruby 2.5.8p224
|
247
|
-
|
248
|
-
BUNDLED WITH
|
249
|
-
1.17.3
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
data/tmp/aruba/test_app/Rakefile
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
|
5
|
-
// vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require rails-ujs
|
14
|
-
//= require activestorage
|
15
|
-
//= require turbolinks
|
16
|
-
//= require_tree .
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// Action Cable provides the framework to deal with WebSockets in Rails.
|
2
|
-
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
|
3
|
-
//
|
4
|
-
//= require action_cable
|
5
|
-
//= require_self
|
6
|
-
//= require_tree ./channels
|
7
|
-
|
8
|
-
(function() {
|
9
|
-
this.App || (this.App = {});
|
10
|
-
|
11
|
-
App.cable = ActionCable.createConsumer();
|
12
|
-
|
13
|
-
}).call(this);
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
|
6
|
-
* vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
-
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
-
* It is generally better to create a new file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|
@@ -1,84 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
background-color: #fff;
|
3
|
-
color: #333;
|
4
|
-
margin: 33px;
|
5
|
-
font-family: verdana, arial, helvetica, sans-serif;
|
6
|
-
font-size: 13px;
|
7
|
-
line-height: 18px;
|
8
|
-
}
|
9
|
-
|
10
|
-
p, ol, ul, td {
|
11
|
-
font-family: verdana, arial, helvetica, sans-serif;
|
12
|
-
font-size: 13px;
|
13
|
-
line-height: 18px;
|
14
|
-
}
|
15
|
-
|
16
|
-
pre {
|
17
|
-
background-color: #eee;
|
18
|
-
padding: 10px;
|
19
|
-
font-size: 11px;
|
20
|
-
}
|
21
|
-
|
22
|
-
a {
|
23
|
-
color: #000;
|
24
|
-
|
25
|
-
&:visited {
|
26
|
-
color: #666;
|
27
|
-
}
|
28
|
-
|
29
|
-
&:hover {
|
30
|
-
color: #fff;
|
31
|
-
background-color: #000;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
th {
|
36
|
-
padding-bottom: 5px;
|
37
|
-
}
|
38
|
-
|
39
|
-
td {
|
40
|
-
padding: 0 5px 7px;
|
41
|
-
}
|
42
|
-
|
43
|
-
div {
|
44
|
-
&.field, &.actions {
|
45
|
-
margin-bottom: 10px;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
|
49
|
-
#notice {
|
50
|
-
color: green;
|
51
|
-
}
|
52
|
-
|
53
|
-
.field_with_errors {
|
54
|
-
padding: 2px;
|
55
|
-
background-color: red;
|
56
|
-
display: table;
|
57
|
-
}
|
58
|
-
|
59
|
-
#error_explanation {
|
60
|
-
width: 450px;
|
61
|
-
border: 2px solid red;
|
62
|
-
padding: 7px 7px 0;
|
63
|
-
margin-bottom: 20px;
|
64
|
-
background-color: #f0f0f0;
|
65
|
-
|
66
|
-
h2 {
|
67
|
-
text-align: left;
|
68
|
-
font-weight: bold;
|
69
|
-
padding: 5px 5px 5px 15px;
|
70
|
-
font-size: 12px;
|
71
|
-
margin: -7px -7px 0;
|
72
|
-
background-color: #c00;
|
73
|
-
color: #fff;
|
74
|
-
}
|
75
|
-
|
76
|
-
ul li {
|
77
|
-
font-size: 12px;
|
78
|
-
list-style: square;
|
79
|
-
}
|
80
|
-
}
|
81
|
-
|
82
|
-
label {
|
83
|
-
display: block;
|
84
|
-
}
|
@@ -1,74 +0,0 @@
|
|
1
|
-
class AppointmentsController < ApplicationController
|
2
|
-
before_action :set_appointment, only: [:show, :edit, :update, :destroy]
|
3
|
-
|
4
|
-
# GET /appointments
|
5
|
-
# GET /appointments.json
|
6
|
-
def index
|
7
|
-
@appointments = Appointment.all
|
8
|
-
end
|
9
|
-
|
10
|
-
# GET /appointments/1
|
11
|
-
# GET /appointments/1.json
|
12
|
-
def show
|
13
|
-
end
|
14
|
-
|
15
|
-
# GET /appointments/new
|
16
|
-
def new
|
17
|
-
@appointment = Appointment.new
|
18
|
-
end
|
19
|
-
|
20
|
-
# GET /appointments/1/edit
|
21
|
-
def edit
|
22
|
-
end
|
23
|
-
|
24
|
-
# POST /appointments
|
25
|
-
# POST /appointments.json
|
26
|
-
def create
|
27
|
-
@appointment = Appointment.new(appointment_params)
|
28
|
-
|
29
|
-
respond_to do |format|
|
30
|
-
if @appointment.save
|
31
|
-
format.html { redirect_to @appointment, notice: 'Appointment was successfully created.' }
|
32
|
-
format.json { render :show, status: :created, location: @appointment }
|
33
|
-
else
|
34
|
-
format.html { render :new }
|
35
|
-
format.json { render json: @appointment.errors, status: :unprocessable_entity }
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
# PATCH/PUT /appointments/1
|
41
|
-
# PATCH/PUT /appointments/1.json
|
42
|
-
def update
|
43
|
-
respond_to do |format|
|
44
|
-
if @appointment.update(appointment_params)
|
45
|
-
format.html { redirect_to @appointment, notice: 'Appointment was successfully updated.' }
|
46
|
-
format.json { render :show, status: :ok, location: @appointment }
|
47
|
-
else
|
48
|
-
format.html { render :edit }
|
49
|
-
format.json { render json: @appointment.errors, status: :unprocessable_entity }
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
# DELETE /appointments/1
|
55
|
-
# DELETE /appointments/1.json
|
56
|
-
def destroy
|
57
|
-
@appointment.destroy
|
58
|
-
respond_to do |format|
|
59
|
-
format.html { redirect_to appointments_url, notice: 'Appointment was successfully destroyed.' }
|
60
|
-
format.json { head :no_content }
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
private
|
65
|
-
# Use callbacks to share common setup or constraints between actions.
|
66
|
-
def set_appointment
|
67
|
-
@appointment = Appointment.find(params[:id])
|
68
|
-
end
|
69
|
-
|
70
|
-
# Only allow a list of trusted parameters through.
|
71
|
-
def appointment_params
|
72
|
-
params.require(:appointment).permit(:name, :when)
|
73
|
-
end
|
74
|
-
end
|