From ef119d0fb64fa6a2e87607e40669ddd7c211743e Mon Sep 17 00:00:00 2001 From: Jimmy Date: Tue, 20 Apr 2021 13:21:19 +0800 Subject: [PATCH] [fix]Change wording when no events is happening now or next --- app/views/conferences/_happening_now.haml | 2 +- spec/features/splashpage_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/conferences/_happening_now.haml b/app/views/conferences/_happening_now.haml index e8379f65..563a4b4f 100644 --- a/app/views/conferences/_happening_now.haml +++ b/app/views/conferences/_happening_now.haml @@ -13,4 +13,4 @@ != pagy_bootstrap_nav_js(pagy) - else .row - %h3.text-center There are no events happening now and next. + %h3.text-center There are no events scheduled yet. diff --git a/spec/features/splashpage_spec.rb b/spec/features/splashpage_spec.rb index b2f26010..1c97a451 100644 --- a/spec/features/splashpage_spec.rb +++ b/spec/features/splashpage_spec.rb @@ -108,10 +108,10 @@ feature Splashpage do sign_in participant end - scenario 'displays \'There are no events happening now and next.\' if nothing is happening now and next' do + scenario 'displays \'There are no events scheduled yet.\' if nothing is happening now and next' do visit conference_path(conference2.short_title) happening_now = page.find('#happening-now') - expect(happening_now).to have_content('There are no events happening now and next.') + expect(happening_now).to have_content('There are no events scheduled yet.') end scenario 'shows all events happening next if nothing is happening now' do