Commit 52cdfa6c authored by Nick Thomas's avatar Nick Thomas

Ensure that only a single namespace is created for the user

parent 61c5a540
......@@ -3,11 +3,11 @@ require 'spec_helper'
describe 'Profile > Pipeline Quota' do
using RSpec::Parameterized::TableSyntax
set(:statistics) { create(:namespace_statistics) }
set(:namespace) { statistics.namespace }
set(:user) { create(:user) }
set(:namespace) { user.namespace }
set(:statistics) { create(:namespace_statistics, namespace: namespace) }
set(:project) { create(:project, namespace: namespace) }
set(:other_project) { create(:project, namespace: namespace, shared_runners_enabled: false) }
set(:user) { namespace.owner }
before do
gitlab_sign_in(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