mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Changed wording on warning message
This commit is contained in:
parent
9e7682fab1
commit
c7b4e8e1d6
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue