This commit is contained in:
Sidharth Bansal 2017-12-04 15:10:59 +00:00 • committed by GitHub
commit 7621906acc
3 changed files with 9 additions and 8 deletions

View file

@ -723,9 +723,10 @@ Style/TrailingCommaInLiteral:
- '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 # Offense count: 2
# Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles.
Style/UnneededInterpolation: # SupportedStyles: snake_case, normalcase, non_integer
Style/VariableNumber:
Exclude: Exclude:
- 'app/helpers/format_helper.rb' - 'spec/models/ticket_purchase_spec.rb'
- 'spec/controllers/admin/conferences_controller_spec.rb'

View file

@ -122,7 +122,7 @@ module FormatHelper
plural || singular.pluralize plural || singular.pluralize
end end
"#{word}" word.to_s
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

View file

@ -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.to_s)
expect(conference.short_title).to eq("#{conference.short_title}") expect(conference.short_title).to eq(conference.short_title.to_s)
end end
it 're-renders the #show template' do it 're-renders the #show template' do