@@ -34,15 +34,15 @@ Add SimpleCov configuration at the top of the file (before `RSpec.configure`):
3434
3535``` ruby
3636# Run code coverage and exclude files with less than 5 lines of code
37- unless ENV [' NO_COVERAGE' ]
38- require ' simplecov'
39- SimpleCov .start ' rails' do
40- add_filter ' app/channels/application_cable/channel.rb'
41- add_filter ' app/channels/application_cable/connection.rb'
42- add_filter ' app/jobs/application_job.rb'
43- add_filter ' app/mailers/application_mailer.rb'
44- add_filter ' app/models/application_record.rb'
45- add_filter ' .semaphore-cache'
37+ unless ENV [" NO_COVERAGE" ]
38+ require " simplecov"
39+ SimpleCov .start " rails" do
40+ add_filter " app/channels/application_cable/channel.rb"
41+ add_filter " app/channels/application_cable/connection.rb"
42+ add_filter " app/jobs/application_job.rb"
43+ add_filter " app/mailers/application_mailer.rb"
44+ add_filter " app/models/application_record.rb"
45+ add_filter " .semaphore-cache"
4646 enable_coverage :branch
4747 minimum_coverage line: 100 , branch: 100
4848 end
@@ -75,7 +75,7 @@ We suggest you to also unable/uncomment the following:
7575
7676``` ruby
7777config.disable_monkey_patching!
78- config.default_formatter = ' doc' if config.files_to_run.one?
78+ config.default_formatter = " doc" if config.files_to_run.one?
7979config.profile_examples = 5
8080config.order = :random
8181Kernel .srand config.seed
@@ -87,11 +87,11 @@ Kernel.srand config.seed
8787Add the following requires:
8888
8989``` ruby
90- # after `require ' rspec/rails' `
91- require ' capybara/rspec'
92- require ' capybara/rails'
93- require ' selenium/webdriver'
94- require ' super_diff/rspec-rails'
90+ # after `require " rspec/rails" `
91+ require " capybara/rspec"
92+ require " capybara/rails"
93+ require " selenium/webdriver"
94+ require " super_diff/rspec-rails"
9595```
9696
9797Add the following after the requires (before ` RSpec.configure ` ):
@@ -131,7 +131,7 @@ RSpec.configure do |config|
131131 end
132132
133133 config.before(:each , type: :system , js: true ) do
134- driven_by ENV [' SELENIUM_DRIVER' ]&.to_sym || :selenium_chrome_headless
134+ driven_by ENV [" SELENIUM_DRIVER" ]&.to_sym || :selenium_chrome_headless
135135 Capybara .page.current_window.resize_to(1280 , 800 )
136136 end
137137end
0 commit comments