Skip to content

Commit c0db5e6

Browse files
committed
Replace all single quotes with double quotes
1 parent 95d315a commit c0db5e6

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

ruby_on_rails/rspec.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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
7777
config.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?
7979
config.profile_examples = 5
8080
config.order = :random
8181
Kernel.srand config.seed
@@ -87,11 +87,11 @@ Kernel.srand config.seed
8787
Add 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

9797
Add 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
137137
end

0 commit comments

Comments
 (0)