From 2e60c5fa41a3e35535d0f3f0cbde1a11e31a4667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 27 Jun 2016 15:43:27 +0200 Subject: [PATCH] Add start time locale --- config/locales/en.yml | 1 + spec/controllers/meetings_controller_spec.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index 5d90ce6230..1fa46c49d9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -29,6 +29,7 @@ en: participants_attended: "Attendees" participants_invited: "Invitees" start_time: "Time" + start_time_hour: "Starting time" errors: messages: invalid_time_format: "is not a valid time. Required format: HH:MM" diff --git a/spec/controllers/meetings_controller_spec.rb b/spec/controllers/meetings_controller_spec.rb index 97d27df1e9..b04c57a927 100644 --- a/spec/controllers/meetings_controller_spec.rb +++ b/spec/controllers/meetings_controller_spec.rb @@ -142,7 +142,7 @@ describe MeetingsController, type: :controller do expect(response).to render_template :new expect(response.body) .to have_selector '#errorExplanation li', - text: "Start time hour " + + text: "Starting time " + I18n.t('activerecord.errors.messages.invalid_time_format') end end