Fix or workaround spec failure
Not sure why this fixes this error: ``` ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_routes_on_source_type_and_source_id" DETAIL: Key (source_type, source_id)=(Project, 1) already exists. : INSERT INTO "routes" ("source_type", "path", "name", "source_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" ```
This commit is contained in:
parent
ca5c762cf5
commit
e8f2a7007a
|
@ -93,8 +93,8 @@ describe 'Edit Project Settings', feature: true do
|
|||
|
||||
describe 'Transfer project section', js: true do
|
||||
# Not using empty project because we need a repo to exist
|
||||
let(:project) { create(:project, namespace: user.namespace, name: 'gitlabhq') }
|
||||
let(:group) { create(:group) }
|
||||
let!(:project) { create(:project, namespace: user.namespace, name: 'gitlabhq') }
|
||||
let!(:group) { create(:group) }
|
||||
|
||||
before(:context) { TestEnv.clean_test_path }
|
||||
before(:example) { group.add_owner(user) }
|
||||
|
|
Loading…
Reference in New Issue