Commit d92668a0 authored by Robert Speicher's avatar Robert Speicher
Browse files

Only create :admin user in the one test where it's used

parent 4b6123618bba
......@@ -4,7 +4,6 @@
describe :create_by_user do
before do
@user = create :user
@admin = create :user, admin: true
@opts = {
name: "GitLab",
namespace: @user.namespace
......@@ -75,7 +74,9 @@
it 'should allow a restricted visibility level for admins' do
project = create_project(@admin, @opts)
admin = create(:admin)
project = create_project(admin, @opts)
expect(project.errors.any?).to be(false)
expect(project.saved?).to be(true)
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