Rename error message

This commit is contained in:
Martin Lensment 2015-05-20 19:20:03 +03:00
parent 8371dcf46e
commit b39c3ab262
5 changed files with 6 additions and 8 deletions

View file

@ -5,7 +5,7 @@ feature 'Sessions', type: :feature do
it 'should not see login page' do
WhiteIp.destroy_all
visit registrar_login_path
page.should have_text('IP is not whitelisted')
page.should have_text('Access denied')
end
it 'should see log in' do
@ -23,7 +23,7 @@ feature 'Sessions', type: :feature do
fill_in 'depp_user_tag', with: @api_user_invalid_ip.username
fill_in 'depp_user_password', with: @api_user_invalid_ip.password
click_button 'Log in'
page.should have_text('IP is not whitelisted')
page.should have_text('Access denied')
end
end