mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix Style/UnneededInterpolation
Exclusions from .rubocop_todo.yml deleted. This cop checks for string interpolated expressions. It supports autocorrection. Fixes #1823
This commit is contained in:
parent
666f5ab2dc
commit
93fcf8893a
3 changed files with 3 additions and 10 deletions
|
|
@ -722,10 +722,3 @@ Style/TrailingCommaInLiteral:
|
||||||
- 'Guardfile'
|
- 'Guardfile'
|
||||||
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
|
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
|
||||||
- 'spec/models/conference_spec.rb'
|
- 'spec/models/conference_spec.rb'
|
||||||
|
|
||||||
# Offense count: 3
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Style/UnneededInterpolation:
|
|
||||||
Exclude:
|
|
||||||
- 'app/helpers/format_helper.rb'
|
|
||||||
- 'spec/controllers/admin/conferences_controller_spec.rb'
|
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ module FormatHelper
|
||||||
plural || singular.pluralize
|
plural || singular.pluralize
|
||||||
end
|
end
|
||||||
|
|
||||||
"#{word}"
|
word
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns black or white deppending on what of them contrast more with the
|
# Returns black or white deppending on what of them contrast more with the
|
||||||
|
|
|
||||||
|
|
@ -56,8 +56,8 @@ describe Admin::ConferencesController do
|
||||||
conference.reload
|
conference.reload
|
||||||
expect(flash[:error])
|
expect(flash[:error])
|
||||||
.to eq("Updating conference failed. Short title can't be blank.")
|
.to eq("Updating conference failed. Short title can't be blank.")
|
||||||
expect(conference.title).to eq("#{conference.title}")
|
expect(conference.title).to eq(conference.title)
|
||||||
expect(conference.short_title).to eq("#{conference.short_title}")
|
expect(conference.short_title).to eq(conference.short_title)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 're-renders the #show template' do
|
it 're-renders the #show template' do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue