mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 13:01:02 +00:00
Changed wording on warning message
This commit is contained in:
parent
2d8bf792f7
commit
97162edfba
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
|
valid_shout = 100.times.map { "a" }.join
|
||||||
invalid_shout = 101.times.map { "a" }.join
|
invalid_shout = 101.times.map { "a" }.join
|
||||||
visit gather_path(gather)
|
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
|
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
|
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
|
end
|
||||||
|
|
||||||
scenario 'creating shout while banned' do
|
scenario 'creating shout while banned' do
|
||||||
|
|
|
@ -19,11 +19,11 @@ feature 'Shoutbox', js: true do
|
||||||
valid_shout = 100.times.map { "a" }.join
|
valid_shout = 100.times.map { "a" }.join
|
||||||
invalid_shout = 101.times.map { "a" }.join
|
invalid_shout = 101.times.map { "a" }.join
|
||||||
visit root_path
|
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
|
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
|
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
|
end
|
||||||
|
|
||||||
scenario 'creating shout while banned' do
|
scenario 'creating shout while banned' do
|
||||||
|
|
Loading…
Reference in a new issue