• Michael Kozono's avatar
    Fix or workaround spec failure · e8f2a700
    Michael Kozono authored
    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"
    ```
    e8f2a700
project_settings_spec.rb 6.1 KB