1
0
Fork 0

Fix code style

This commit is contained in:
Alex Kotov 2018-12-09 05:36:11 +05:00
parent 06d73c0ec1
commit 8cbb725856
No known key found for this signature in database
GPG key ID: 4E831250F47DE154
2 changed files with 7 additions and 7 deletions

View file

@ -5,7 +5,6 @@ AllCops:
Exclude:
- 'bin/**/*'
- 'db/schema.rb'
- 'features/support/env.rb'
- 'lib/tasks/cucumber.rake'
- 'lib/templates/**/*'
- 'script/cucumber'

View file

@ -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.
# 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
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.
# This should be on the top of the file.
$coverage = true
require 'simplecov'
require 'cucumber/rails'
require 'capybara-screenshot/cucumber'
@ -41,7 +43,7 @@ ActionController::Base.allow_rescue = false
begin
DatabaseCleaner.strategy = :transaction
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
# 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.
# See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature
Cucumber::Rails::Database.javascript_strategy = :truncation