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