Commit d4519d04 authored by Max Woolf's avatar Max Woolf

Apply backend maintainer suggestions

parent 24836acd
......@@ -35,11 +35,12 @@ RSpec.describe PersonalAccessToken do
describe '.owner_is_human' do
let_it_be(:user) { create(:user, :project_bot) }
let_it_be(:project_member) { create(:project_member, user: user) }
let_it_be(:personal_access_token) { create(:personal_access_token) }
let_it_be(:project_access_token) { create(:personal_access_token, user: user) }
subject { described_class.owner_is_human }
it { is_expected.not_to include(project_access_token) }
it { is_expected.to contain_exactly(personal_access_token) }
end
describe '.for_user' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment