From 8c21891901f66069ec18892871e897222129408f Mon Sep 17 00:00:00 2001 From: cblanc Date: Sat, 9 May 2015 16:37:00 +0100 Subject: [PATCH] Changed wording on warning message --- spec/features/gathers/gathers_spec.rb | 6 +++--- spec/features/shoutbox/shoutbox_spec.rb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/features/gathers/gathers_spec.rb b/spec/features/gathers/gathers_spec.rb index 71026b3..cdb8f8a 100644 --- a/spec/features/gathers/gathers_spec.rb +++ b/spec/features/gathers/gathers_spec.rb @@ -21,11 +21,11 @@ feature 'Gathers', js: true do valid_shout = 100.times.map { "a" }.join invalid_shout = 101.times.map { "a" }.join visit gather_path(gather) - expect(page).to_not have_content("Shout message length exceeded") + expect(page).to_not have_content("Maximum shout length exceeded") fill_in "shout_Gather_#{gather.id}_text", with: invalid_shout - expect(page).to have_content("Shout message length exceeded") + expect(page).to have_content("Maximum shout length exceeded") fill_in "shout_Gather_#{gather.id}_text", with: valid_shout - expect(page).to_not have_content("Shout message length exceeded") + expect(page).to_not have_content("Maximum shout length exceeded") end scenario 'creating shout while banned' do diff --git a/spec/features/shoutbox/shoutbox_spec.rb b/spec/features/shoutbox/shoutbox_spec.rb index a138a97..5a40b6e 100644 --- a/spec/features/shoutbox/shoutbox_spec.rb +++ b/spec/features/shoutbox/shoutbox_spec.rb @@ -19,11 +19,11 @@ feature 'Shoutbox', js: true do valid_shout = 100.times.map { "a" }.join invalid_shout = 101.times.map { "a" }.join visit root_path - expect(page).to_not have_content("Shout message length exceeded") + expect(page).to_not have_content("Maximum shout length exceeded") fill_in 'shoutbox_text', with: invalid_shout - expect(page).to have_content("Shout message length exceeded") + expect(page).to have_content("Maximum shout length exceeded") fill_in 'shoutbox_text', with: valid_shout - expect(page).to_not have_content("Shout message length exceeded") + expect(page).to_not have_content("Maximum shout length exceeded") end scenario 'creating shout while banned' do