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:
Michael Kozono 2017-05-03 10:54:06 -07:00
parent ca5c762cf5
commit e8f2a7007a
1 changed files with 2 additions and 2 deletions

View File

@ -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) }