more flexible login in spec helper

This commit is contained in:
wvengen 2013-07-24 01:11:36 +02:00
parent d58ce31b7f
commit a858ceedea
2 changed files with 4 additions and 6 deletions

View file

@ -9,7 +9,7 @@ describe 'the session', :type => :feature do
expect(response).to be_success
end
it 'logs me in' do
login user.nick, user.password
login user
expect(page).to_not have_selector('.alert-error')
end
it 'does not log me in with wrong password' do