Upgrade to Rails 5.2
All the code in the `bin/` and the `config/` folder has been generated running `rake app:update`, except the `escape_javascript_fix` file, which we've removed since the code there is already included in Rails 5.2.
This commit is contained in:
@@ -19,18 +19,6 @@ Warden.test_mode!
|
||||
|
||||
ActiveRecord::Migration.maintain_test_schema!
|
||||
|
||||
# Monkey patch from https://github.com/rails/rails/pull/32293
|
||||
# Remove when we upgrade to Rails 5.2
|
||||
require "action_dispatch/system_testing/test_helpers/setup_and_teardown"
|
||||
module ActionDispatch::SystemTesting::TestHelpers::SetupAndTeardown
|
||||
def after_teardown
|
||||
take_failed_screenshot
|
||||
Capybara.reset_sessions!
|
||||
ensure
|
||||
super
|
||||
end
|
||||
end
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.infer_spec_type_from_file_location!
|
||||
config.after do
|
||||
|
||||
Reference in New Issue
Block a user