Fix code style
This commit is contained in:
parent
06d73c0ec1
commit
8cbb725856
|
@ -5,7 +5,6 @@ AllCops:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'bin/**/*'
|
- 'bin/**/*'
|
||||||
- 'db/schema.rb'
|
- 'db/schema.rb'
|
||||||
- 'features/support/env.rb'
|
|
||||||
- 'lib/tasks/cucumber.rake'
|
- 'lib/tasks/cucumber.rake'
|
||||||
- 'lib/templates/**/*'
|
- 'lib/templates/**/*'
|
||||||
- 'script/cucumber'
|
- 'script/cucumber'
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
# This should be on the top of the file.
|
||||||
|
$coverage = true
|
||||||
|
require 'simplecov'
|
||||||
|
|
||||||
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
|
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
|
||||||
# It is recommended to regenerate this file in the future when you upgrade to a
|
# It is recommended to regenerate this file in the future when you upgrade to a
|
||||||
# newer version of cucumber-rails. Consider adding your own code to a new file
|
# newer version of cucumber-rails. Consider adding your own code to a new file
|
||||||
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
|
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
|
||||||
# files.
|
# files.
|
||||||
|
|
||||||
# This should be on the top of the file.
|
|
||||||
$coverage = true
|
|
||||||
require 'simplecov'
|
|
||||||
|
|
||||||
require 'cucumber/rails'
|
require 'cucumber/rails'
|
||||||
require 'capybara-screenshot/cucumber'
|
require 'capybara-screenshot/cucumber'
|
||||||
|
|
||||||
|
@ -41,7 +43,7 @@ ActionController::Base.allow_rescue = false
|
||||||
begin
|
begin
|
||||||
DatabaseCleaner.strategy = :transaction
|
DatabaseCleaner.strategy = :transaction
|
||||||
rescue NameError
|
rescue NameError
|
||||||
raise "You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it."
|
raise 'You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it.'
|
||||||
end
|
end
|
||||||
|
|
||||||
# You may also want to configure DatabaseCleaner to use different strategies for certain features and scenarios.
|
# You may also want to configure DatabaseCleaner to use different strategies for certain features and scenarios.
|
||||||
|
@ -63,4 +65,3 @@ end
|
||||||
# The :transaction strategy is faster, but might give you threading problems.
|
# The :transaction strategy is faster, but might give you threading problems.
|
||||||
# See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature
|
# See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature
|
||||||
Cucumber::Rails::Database.javascript_strategy = :truncation
|
Cucumber::Rails::Database.javascript_strategy = :truncation
|
||||||
|
|
||||||
|
|
Reference in New Issue