spreewald 4.1.1 → 4.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +0 -5
  3. data/CHANGELOG.md +16 -0
  4. data/Gemfile.lock +3 -3
  5. data/Gemfile.ruby266.lock +59 -42
  6. data/Gemfile.ruby300.lock +37 -53
  7. data/README.md +10 -19
  8. data/Rakefile +5 -11
  9. data/examples/paths.rb +7 -0
  10. data/features/binary.feature +12 -8
  11. data/lib/spreewald/development_steps.rb +5 -5
  12. data/lib/spreewald/email_steps.rb +4 -18
  13. data/lib/spreewald/web_steps.rb +53 -50
  14. data/lib/spreewald.rb +1 -0
  15. data/lib/spreewald_support/field_errors.rb +56 -0
  16. data/lib/spreewald_support/version.rb +1 -1
  17. data/lib/steps/follow_the_link.rb +63 -0
  18. data/lib/steps/show_me_the_mails.rb +20 -0
  19. data/spec/steps/follow_the_link_spec.rb +81 -0
  20. data/spec/steps/show_me_the_mails_spec.rb +96 -0
  21. data/support/step_definition.rb +11 -0
  22. data/support/step_manager.rb +1 -1
  23. data/tests/rails-6_capybara-3/Gemfile.lock +1 -1
  24. data/tests/shared/app/controllers/forms_controller.rb +8 -2
  25. data/tests/shared/app/controllers/static_pages_controller.rb +3 -0
  26. data/tests/shared/app/views/forms/invalid_bootstrap3_form.html.haml +16 -0
  27. data/tests/shared/app/views/forms/invalid_bootstrap4_form.html.haml +18 -0
  28. data/tests/shared/app/views/forms/{invalid_form.html.haml → invalid_rails_form.html.haml} +0 -0
  29. data/tests/shared/app/views/static_pages/should_see.haml +7 -0
  30. data/tests/shared/config/routes.rb +4 -1
  31. data/tests/shared/features/shared/iframe_steps.feature +1 -2
  32. data/tests/shared/features/shared/web_steps.feature +47 -15
  33. metadata +15 -112
  34. data/Gemfile.ruby245 +0 -10
  35. data/Gemfile.ruby245.lock +0 -73
  36. data/tests/rails-4_capybara-2/Gemfile +0 -24
  37. data/tests/rails-4_capybara-2/Gemfile.lock +0 -230
  38. data/tests/rails-4_capybara-2/README.rdoc +0 -28
  39. data/tests/rails-4_capybara-2/Rakefile +0 -6
  40. data/tests/rails-4_capybara-2/app +0 -1
  41. data/tests/rails-4_capybara-2/bin/bundle +0 -3
  42. data/tests/rails-4_capybara-2/bin/rails +0 -4
  43. data/tests/rails-4_capybara-2/bin/rake +0 -4
  44. data/tests/rails-4_capybara-2/bin/setup +0 -29
  45. data/tests/rails-4_capybara-2/config/application.rb +0 -35
  46. data/tests/rails-4_capybara-2/config/boot.rb +0 -3
  47. data/tests/rails-4_capybara-2/config/cucumber.yml +0 -8
  48. data/tests/rails-4_capybara-2/config/database.yml +0 -18
  49. data/tests/rails-4_capybara-2/config/environment.rb +0 -5
  50. data/tests/rails-4_capybara-2/config/environments/development.rb +0 -28
  51. data/tests/rails-4_capybara-2/config/environments/test.rb +0 -42
  52. data/tests/rails-4_capybara-2/config/initializers/backtrace_silencers.rb +0 -7
  53. data/tests/rails-4_capybara-2/config/initializers/cookies_serializer.rb +0 -3
  54. data/tests/rails-4_capybara-2/config/initializers/filter_parameter_logging.rb +0 -4
  55. data/tests/rails-4_capybara-2/config/initializers/inflections.rb +0 -16
  56. data/tests/rails-4_capybara-2/config/initializers/mime_types.rb +0 -4
  57. data/tests/rails-4_capybara-2/config/initializers/session_store.rb +0 -3
  58. data/tests/rails-4_capybara-2/config/initializers/silence_deprecation_warnings.rb +0 -11
  59. data/tests/rails-4_capybara-2/config/initializers/to_time_preserves_timezone.rb +0 -10
  60. data/tests/rails-4_capybara-2/config/initializers/wrap_parameters.rb +0 -14
  61. data/tests/rails-4_capybara-2/config/locales/en.yml +0 -23
  62. data/tests/rails-4_capybara-2/config/routes.rb +0 -1
  63. data/tests/rails-4_capybara-2/config/secrets.yml +0 -22
  64. data/tests/rails-4_capybara-2/config.ru +0 -4
  65. data/tests/rails-4_capybara-2/db +0 -1
  66. data/tests/rails-4_capybara-2/features/browser_tab_steps.feature +0 -1
  67. data/tests/rails-4_capybara-2/features/development_steps.feature +0 -1
  68. data/tests/rails-4_capybara-2/features/email_steps.feature +0 -1
  69. data/tests/rails-4_capybara-2/features/iframe_steps.feature +0 -1
  70. data/tests/rails-4_capybara-2/features/overriding.feature +0 -1
  71. data/tests/rails-4_capybara-2/features/session_steps.feature +0 -1
  72. data/tests/rails-4_capybara-2/features/step_definitions/overriding_steps.rb +0 -1
  73. data/tests/rails-4_capybara-2/features/step_definitions/test_steps.rb +0 -1
  74. data/tests/rails-4_capybara-2/features/support/env.rb +0 -66
  75. data/tests/rails-4_capybara-2/features/support/paths.rb +0 -1
  76. data/tests/rails-4_capybara-2/features/support/selectors.rb +0 -1
  77. data/tests/rails-4_capybara-2/features/support/selenium.rb +0 -1
  78. data/tests/rails-4_capybara-2/features/table_steps.feature +0 -1
  79. data/tests/rails-4_capybara-2/features/time_steps.feature +0 -1
  80. data/tests/rails-4_capybara-2/features/web_steps.feature +0 -1
  81. data/tests/rails-4_capybara-2/lib/tasks/cucumber.rake +0 -65
  82. data/tests/rails-4_capybara-2/log/.keep +0 -0
  83. data/tests/rails-4_capybara-2/public/404.html +0 -67
  84. data/tests/rails-4_capybara-2/public/422.html +0 -67
  85. data/tests/rails-4_capybara-2/public/500.html +0 -66
  86. data/tests/rails-4_capybara-2/public/favicon.ico +0 -0
  87. data/tests/rails-4_capybara-2/public/fixture_files +0 -1
  88. data/tests/rails-4_capybara-2/script/cucumber +0 -10
@@ -1,28 +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
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Rails.application.load_tasks
@@ -1 +0,0 @@
1
- ../shared/app/
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
4
- Rake.application.run
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'pathname'
3
-
4
- # path to your application root.
5
- APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
-
7
- Dir.chdir APP_ROOT do
8
- # This script is a starting point to setup your application.
9
- # Add necessary setup steps to this file:
10
-
11
- puts "== Installing dependencies =="
12
- system "gem install bundler --conservative"
13
- system "bundle check || bundle install"
14
-
15
- # puts "\n== Copying sample files =="
16
- # unless File.exist?("config/database.yml")
17
- # system "cp config/database.yml.sample config/database.yml"
18
- # end
19
-
20
- puts "\n== Preparing database =="
21
- system "bin/rake db:setup"
22
-
23
- puts "\n== Removing old logs and tempfiles =="
24
- system "rm -f log/*"
25
- system "rm -rf tmp/cache"
26
-
27
- puts "\n== Restarting application server =="
28
- system "touch tmp/restart.txt"
29
- end
@@ -1,35 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require "rails"
4
- # Pick the frameworks you want:
5
- require "active_model/railtie"
6
- require "active_job/railtie"
7
- require "active_record/railtie"
8
- require "action_controller/railtie"
9
- require "action_mailer/railtie"
10
- require "action_view/railtie"
11
- # require "sprockets/railtie"
12
- # require "rails/test_unit/railtie"
13
-
14
- # Require the gems listed in Gemfile, including any gems
15
- # you've limited to :test, :development, or :production.
16
- Bundler.require(*Rails.groups)
17
-
18
- module Rails4Capybara3
19
- class Application < Rails::Application
20
- # Settings in config/environments/* take precedence over those specified here.
21
- # Application configuration should go into files in config/initializers
22
- # -- all .rb files in that directory are automatically loaded.
23
-
24
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
25
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
26
- # config.time_zone = 'Central Time (US & Canada)'
27
-
28
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
29
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
30
- # config.i18n.default_locale = :de
31
-
32
- # Do not swallow errors in after_commit/after_rollback callbacks.
33
- config.active_record.raise_in_transactional_callbacks = true
34
- end
35
- end
@@ -1,3 +0,0 @@
1
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
2
-
3
- require 'bundler/setup' # Set up gems listed in the Gemfile.
@@ -1,8 +0,0 @@
1
- <%
2
- rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
3
- rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
4
- std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --no-strict-pending --tags 'not @wip'"
5
- %>
6
- default: <%= std_opts %> features
7
- wip: --tags @wip:3 --wip features
8
- rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --no-strict-pending --tags 'not @wip'
@@ -1,18 +0,0 @@
1
- default: &default
2
- adapter: sqlite3
3
- pool: 5
4
- timeout: 5000
5
-
6
- development:
7
- <<: *default
8
- database: db/development.sqlite3
9
-
10
- # Warning: The database defined as "test" will be erased and
11
- # re-generated from your development database when you run "rake".
12
- # Do not set this db to the same as development or production.
13
- test: &test
14
- <<: *default
15
- database: db/test.sqlite3
16
-
17
- cucumber:
18
- <<: *test
@@ -1,5 +0,0 @@
1
- # Load the Rails application.
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the Rails application.
5
- Rails.application.initialize!
@@ -1,28 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the web server when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Do not eager load code on boot.
10
- config.eager_load = false
11
-
12
- # Show full error reports and disable caching.
13
- config.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Don't care if the mailer can't send.
17
- config.action_mailer.raise_delivery_errors = false
18
-
19
- # Print deprecation notices to the Rails logger.
20
- config.active_support.deprecation = :log
21
-
22
- # Raise an error on page load if there are pending migrations.
23
- config.active_record.migration_error = :page_load
24
-
25
-
26
- # Raises error for missing translations
27
- # config.action_view.raise_on_missing_translations = true
28
- end
@@ -1,42 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Do not eager load code on boot. This avoids loading your whole application
11
- # just for the purpose of running a single test. If you are using a tool that
12
- # preloads Rails for running tests, you may have to set it to true.
13
- config.eager_load = false
14
-
15
- # Configure static file server for tests with Cache-Control for performance.
16
- config.serve_static_files = true
17
- config.static_cache_control = 'public, max-age=3600'
18
-
19
- # Show full error reports and disable caching.
20
- config.consider_all_requests_local = true
21
- config.action_controller.perform_caching = false
22
-
23
- # Raise exceptions instead of rendering exception templates.
24
- config.action_dispatch.show_exceptions = false
25
-
26
- # Disable request forgery protection in test environment.
27
- config.action_controller.allow_forgery_protection = false
28
-
29
- # Tell Action Mailer not to deliver emails to the real world.
30
- # The :test delivery method accumulates sent emails in the
31
- # ActionMailer::Base.deliveries array.
32
- config.action_mailer.delivery_method = :test
33
-
34
- # Randomize the order test cases are executed.
35
- config.active_support.test_order = :random
36
-
37
- # Print deprecation notices to the stderr.
38
- config.active_support.deprecation = :stderr
39
-
40
- # Raises error for missing translations
41
- # config.action_view.raise_on_missing_translations = true
42
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Configure sensitive parameters which will be filtered from the log file.
4
- Rails.application.config.filter_parameters += [:password]
@@ -1,16 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format. Inflections
4
- # are locale specific, and you may define rules for as many different
5
- # locales as you wish. All of these examples are active by default:
6
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
- # inflect.plural /^(ox)$/i, '\1en'
8
- # inflect.singular /^(ox)en/i, '\1'
9
- # inflect.irregular 'person', 'people'
10
- # inflect.uncountable %w( fish sheep )
11
- # end
12
-
13
- # These inflection rules are supported but not enabled by default:
14
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
- # inflect.acronym 'RESTful'
16
- # end
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.session_store :cookie_store, key: '_rails-4_capybara-3_session'
@@ -1,11 +0,0 @@
1
- silenced = [
2
- /is deprecated and will be removed in Rails 5/,
3
- ] # list of warnings you want to silence
4
-
5
- silenced_expr = Regexp.new(silenced.join('|'))
6
-
7
- ActiveSupport::Deprecation.behavior = lambda do |msg, stack|
8
- unless msg =~ silenced_expr
9
- ActiveSupport::Deprecation::DEFAULT_BEHAVIORS[:stderr].call(msg, stack)
10
- end
11
- end
@@ -1,10 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Preserve the timezone of the receiver when calling to `to_time`.
4
- # Ruby 2.4 will change the behavior of `to_time` to preserve the timezone
5
- # when converting to an instance of `Time` instead of the previous behavior
6
- # of converting to the local system timezone.
7
- #
8
- # Rails 5.0 introduced this config option so that apps made with earlier
9
- # versions of Rails are not affected when upgrading.
10
- ActiveSupport.to_time_preserves_timezone = true
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
- end
10
-
11
- # To enable root element in JSON for ActiveRecord objects.
12
- # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
14
- # end
@@ -1,23 +0,0 @@
1
- # Files in the config/locales directory are used for internationalization
2
- # and are automatically loaded by Rails. If you want to use locales other
3
- # than English, add the necessary files in this directory.
4
- #
5
- # To use the locales, use `I18n.t`:
6
- #
7
- # I18n.t 'hello'
8
- #
9
- # In views, this is aliased to just `t`:
10
- #
11
- # <%= t('hello') %>
12
- #
13
- # To use a different locale, set it with `I18n.locale`:
14
- #
15
- # I18n.locale = :es
16
- #
17
- # This would use the information in config/locales/es.yml.
18
- #
19
- # To learn more, please read the Rails Internationalization guide
20
- # available at http://guides.rubyonrails.org/i18n.html.
21
-
22
- en:
23
- hello: "Hello world"
@@ -1 +0,0 @@
1
- ../../shared/config/routes.rb
@@ -1,22 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- development:
14
- secret_key_base: 84163e89c589a57c53c3dfd2ccd95a60e9fc31088bbf05b546153753ed4bc90b21cc96b0e66c76611d63ceaa768544395ee1bad5ba970929dc9c30164a7b8ac0
15
-
16
- test:
17
- secret_key_base: 535ac53fe5e114f59be51da18787d12a193bfc4f4dc9e616fb73cb4e0c3fb7c873529849f1fb52b638f23aa056ba38d41ef095680c7889288d63879be7486f89
18
-
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
- production:
22
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Rails.application
@@ -1 +0,0 @@
1
- ../shared/db/
@@ -1 +0,0 @@
1
- ../../shared/features/shared/browser_tab_steps.feature
@@ -1 +0,0 @@
1
- ../../shared/features/shared/development_steps.feature
@@ -1 +0,0 @@
1
- ../../shared/features/shared/email_steps.feature
@@ -1 +0,0 @@
1
- ../../shared/features/shared/iframe_steps.feature
@@ -1 +0,0 @@
1
- ../../shared/features/shared/overriding.feature
@@ -1 +0,0 @@
1
- ../../shared/features/shared/session_steps.feature
@@ -1 +0,0 @@
1
- ../../../shared/features/shared/step_definitions/overriding_steps.rb
@@ -1 +0,0 @@
1
- ../../../shared/features/shared/step_definitions/test_steps.rb
@@ -1,66 +0,0 @@
1
- # IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
2
- # It is recommended to regenerate this file in the future when you upgrade to a
3
- # newer version of cucumber-rails. Consider adding your own code to a new file
4
- # instead of editing this one. Cucumber will automatically load all features/**/*.rb
5
- # files.
6
-
7
- ENV["RAILS_ENV"] ||= "test"
8
-
9
- require 'cucumber/rails'
10
- require 'rspec/expectations'
11
-
12
- # load Spreewald steps
13
- require 'spreewald/all_steps'
14
-
15
- # Capybara defaults to CSS3 selectors rather than XPath.
16
- # If you'd prefer to use XPath, just uncomment this line and adjust any
17
- # selectors in your step definitions to use the XPath syntax.
18
- # Capybara.default_selector = :xpath
19
-
20
- # By default, any exception happening in your Rails application will bubble up
21
- # to Cucumber so that your scenario will fail. This is a different from how
22
- # your application behaves in the production environment, where an error page will
23
- # be rendered instead.
24
- #
25
- # Sometimes we want to override this default behaviour and allow Rails to rescue
26
- # exceptions and display an error page (just like when the app is running in production).
27
- # Typical scenarios where you want to do this is when you test your error pages.
28
- # There are two ways to allow Rails to rescue exceptions:
29
- #
30
- # 1) Tag your scenario (or feature) with @allow-rescue
31
- #
32
- # 2) Set the value below to true. Beware that doing this globally is not
33
- # recommended as it will mask a lot of errors for you!
34
- #
35
- ActionController::Base.allow_rescue = false
36
-
37
- # Remove/comment out the lines below if your app doesn't have a database.
38
- # For some databases (like MongoDB and CouchDB) you may need to use :truncation instead.
39
- begin
40
- DatabaseCleaner.strategy = :transaction
41
- rescue NameError
42
- raise "You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it."
43
- end
44
-
45
- # You may also want to configure DatabaseCleaner to use different strategies for certain features and scenarios.
46
- # See the DatabaseCleaner documentation for details. Example:
47
- #
48
- # Before('@no-txn,@selenium,@culerity,@celerity,@javascript') do
49
- # # { :except => [:widgets] } may not do what you expect here
50
- # # as Cucumber::Rails::Database.javascript_strategy overrides
51
- # # this setting.
52
- # DatabaseCleaner.strategy = :truncation
53
- # end
54
- #
55
- # Before('~@no-txn', '~@selenium', '~@culerity', '~@celerity', '~@javascript') do
56
- # DatabaseCleaner.strategy = :transaction
57
- # end
58
- #
59
-
60
- # Possible values are :truncation and :transaction
61
- # The :transaction strategy is faster, but might give you threading problems.
62
- # See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature
63
- Cucumber::Rails::Database.javascript_strategy = :truncation
64
-
65
- Capybara.default_max_wait_time = 5
66
- Capybara.server = :webrick
@@ -1 +0,0 @@
1
- ../../../shared/features/support/paths.rb
@@ -1 +0,0 @@
1
- ../../../shared/features/support/selectors.rb
@@ -1 +0,0 @@
1
- ../../../shared/features/support/selenium.rb
@@ -1 +0,0 @@
1
- ../../shared/features/shared/table_steps.feature
@@ -1 +0,0 @@
1
- ../../shared/features/shared/time_steps.feature
@@ -1 +0,0 @@
1
- ../../shared/features/shared/web_steps.feature
@@ -1,65 +0,0 @@
1
- # IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
2
- # It is recommended to regenerate this file in the future when you upgrade to a
3
- # newer version of cucumber-rails. Consider adding your own code to a new file
4
- # instead of editing this one. Cucumber will automatically load all features/**/*.rb
5
- # files.
6
-
7
-
8
- unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:* tasks
9
-
10
- vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
11
- $LOAD_PATH.unshift(File.dirname(vendored_cucumber_bin) + '/../lib') unless vendored_cucumber_bin.nil?
12
-
13
- begin
14
- require 'cucumber/rake/task'
15
-
16
- namespace :cucumber do
17
- Cucumber::Rake::Task.new({:ok => 'test:prepare'}, 'Run features that should pass') do |t|
18
- t.binary = vendored_cucumber_bin # If nil, the gem's binary is used.
19
- t.fork = true # You may get faster startup if you set this to false
20
- t.profile = 'default'
21
- end
22
-
23
- Cucumber::Rake::Task.new({:wip => 'test:prepare'}, 'Run features that are being worked on') do |t|
24
- t.binary = vendored_cucumber_bin
25
- t.fork = true # You may get faster startup if you set this to false
26
- t.profile = 'wip'
27
- end
28
-
29
- Cucumber::Rake::Task.new({:rerun => 'test:prepare'}, 'Record failing features and run only them if any exist') do |t|
30
- t.binary = vendored_cucumber_bin
31
- t.fork = true # You may get faster startup if you set this to false
32
- t.profile = 'rerun'
33
- end
34
-
35
- desc 'Run all features'
36
- task :all => [:ok, :wip]
37
-
38
- task :statsetup do
39
- require 'rails/code_statistics'
40
- ::STATS_DIRECTORIES << %w(Cucumber\ features features) if File.exist?('features')
41
- ::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features')
42
- end
43
- end
44
- desc 'Alias for cucumber:ok'
45
- task :cucumber => 'cucumber:ok'
46
-
47
- task :default => :cucumber
48
-
49
- task :features => :cucumber do
50
- STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***"
51
- end
52
-
53
- # In case we don't have the generic Rails test:prepare hook, append a no-op task that we can depend upon.
54
- task 'test:prepare' do
55
- end
56
-
57
- task :stats => 'cucumber:statsetup'
58
- rescue LoadError
59
- desc 'cucumber rake task not available (cucumber not installed)'
60
- task :cucumber do
61
- abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
62
- end
63
- end
64
-
65
- end
File without changes
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body>
58
- <!-- This file lives in public/404.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The page you were looking for doesn't exist.</h1>
62
- <p>You may have mistyped the address or the page may have moved.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>