Commit 50563225 authored by peterhegman's avatar peterhegman

Move `:bot_user` to `let_it_be`

parent 8fe3711f
......@@ -4,6 +4,7 @@ require 'spec_helper'
describe 'Project > Settings > Access Tokens', :js do
let_it_be(:user) { create(:user) }
let_it_be(:bot_user) { create(:user, :project_bot) }
let_it_be(:project) { create(:project) }
before_all do
......@@ -15,7 +16,6 @@ describe 'Project > Settings > Access Tokens', :js do
end
def create_project_access_token
bot_user = create(:user, :project_bot)
project.add_maintainer(bot_user)
create(:personal_access_token, user: bot_user)
......
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