spec/spec_helper.rb
Line is too long. [92/80] Open
Open
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
Open
require "simplecov"
- Read upRead up
- Exclude checks
Checks if uses of quotes match the configured preference.
Example: EnforcedStyle: single_quotes (default)
# bad
"No special symbols"
"No string interpolation"
"Just text"
# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"
Example: EnforcedStyle: double_quotes
# bad
'Just some text'
'No special chars or interpolation'
# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"
Do not use block comments. Open
Open
=begin
# This allows you to limit a spec run to individual examples or groups
# you care about by tagging them with `:focus` metadata. When nothing
# is tagged with `:focus`, all examples get run. RSpec also provides
# aliases for `it`, `describe`, and `context` that include `:focus`
- Read upRead up
- Exclude checks
This cop looks for uses of block comments (=begin...=end).
Example:
# bad
=begin
Multiple lines
of comments...
=end
# good
# Multiple lines
# of comments...