Commit b160b16e authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'pl-spec-model-project-factory-default-perf' into 'master'

Speed up project model specs by using factory default for namespace

See merge request gitlab-org/gitlab!45600
parents 416ec57b 2a0352a2
...@@ -2,12 +2,14 @@ ...@@ -2,12 +2,14 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe Project do RSpec.describe Project, factory_default: :keep do
include ProjectForksHelper include ProjectForksHelper
include GitHelpers include GitHelpers
include ExternalAuthorizationServiceHelpers include ExternalAuthorizationServiceHelpers
using RSpec::Parameterized::TableSyntax using RSpec::Parameterized::TableSyntax
let_it_be(:namespace) { create_default(:namespace) }
it_behaves_like 'having unique enum values' it_behaves_like 'having unique enum values'
describe 'associations' do describe 'associations' do
......
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