Changed wording on warning message

This commit is contained in:
cblanc 2015-05-09 16:37:00 +01:00
parent 9e7682fab1
commit c7b4e8e1d6
2 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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