diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-03-13 11:04:33 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-03-13 11:04:33 +0000 |
commit | d1df36e3864967f65f662c1367d3bdfe993beadd (patch) | |
tree | 09cdc737f73baa94ae9b1e47100e9f8aa96ec4a5 /spec/features | |
parent | f49868adf1a2ea24815d432640cd0d996e0d87a0 (diff) | |
parent | 90e11fb272cd30e7e61be16d862830f2b69a624a (diff) | |
download | gitlab-ce-d1df36e3864967f65f662c1367d3bdfe993beadd.tar.gz |
Merge branch 'refactor/global-permissions-for-internal-users' into 'master'
Refactor/global permissions for internal users
See merge request !9598
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/login_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/login_spec.rb b/spec/features/login_spec.rb index ae609160e18..f32d1f78b40 100644 --- a/spec/features/login_spec.rb +++ b/spec/features/login_spec.rb @@ -48,6 +48,18 @@ feature 'Login', feature: true do end end + describe 'with the ghost user' do + it 'disallows login' do + login_with(User.ghost) + + expect(page).to have_content('Invalid Login or password.') + end + + it 'does not update Devise trackable attributes' do + expect { login_with(User.ghost) }.not_to change { User.ghost.reload.sign_in_count } + end + end + describe 'with two-factor authentication' do def enter_code(code) fill_in 'user_otp_attempt', with: code |