Add start time locale

pull/6827/head
Oliver Günther 8 years ago
parent 24b9ebac59
commit 2e60c5fa41
  1. 1
      config/locales/en.yml
  2. 2
      spec/controllers/meetings_controller_spec.rb

@ -29,6 +29,7 @@ en:
participants_attended: "Attendees" participants_attended: "Attendees"
participants_invited: "Invitees" participants_invited: "Invitees"
start_time: "Time" start_time: "Time"
start_time_hour: "Starting time"
errors: errors:
messages: messages:
invalid_time_format: "is not a valid time. Required format: HH:MM" invalid_time_format: "is not a valid time. Required format: HH:MM"

@ -142,7 +142,7 @@ describe MeetingsController, type: :controller do
expect(response).to render_template :new expect(response).to render_template :new
expect(response.body) expect(response.body)
.to have_selector '#errorExplanation li', .to have_selector '#errorExplanation li',
text: "Start time hour " + text: "Starting time " +
I18n.t('activerecord.errors.messages.invalid_time_format') I18n.t('activerecord.errors.messages.invalid_time_format')
end end
end end

Loading…
Cancel
Save