REFACTOR: Track manual locked user levels separately from groups

This commit is contained in:
Robin Ward
2017-11-23 15:55:44 -05:00
parent 87ada55e67
commit 77f90876d3
24 changed files with 226 additions and 185 deletions

View File

@ -372,12 +372,14 @@ describe Admin::UsersController do
@another_user.update_attributes(trust_level: TrustLevel[1])
put :trust_level, params: {
user_id: @another_user.id, level: TrustLevel[0]
user_id: @another_user.id,
level: TrustLevel[0]
}, format: :json
expect(response).to be_success
@another_user.reload
expect(@another_user.trust_level_locked).to eq(true)
expect(@another_user.trust_level).to eq(TrustLevel[0])
expect(@another_user.manual_locked_trust_level).to eq(TrustLevel[0])
end
end