indicaAi/spec/rails_helper.rb
Line is too long. [86/80] Open
Open
abort("The Rails environment is running in production mode!") if Rails.env.production?
- Exclude checks
Line is too long. [105/80] Open
Open
# start by truncating all the tables but then use the faster transaction strategy the rest of the time.
- Exclude checks
Line is too long. [100/80] Open
Open
# configure shoulda matchers to use rspec as the test framework and full matcher libraries for rails
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
Open
abort("The Rails environment is running in production mode!") if Rails.env.production?
- 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"