Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2a0352a2
Commit
2a0352a2
authored
Oct 20, 2020
by
Peter Leitzen
Committed by
Ash McKenzie
Oct 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Speed up project model specs by using factory default for namespace
parent
79e8bd16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
spec/models/project_spec.rb
spec/models/project_spec.rb
+3
-1
No files found.
spec/models/project_spec.rb
View file @
2a0352a2
...
...
@@ -2,12 +2,14 @@
require
'spec_helper'
RSpec
.
describe
Project
do
RSpec
.
describe
Project
,
factory_default: :keep
do
include
ProjectForksHelper
include
GitHelpers
include
ExternalAuthorizationServiceHelpers
using
RSpec
::
Parameterized
::
TableSyntax
let_it_be
(
:namespace
)
{
create_default
(
:namespace
)
}
it_behaves_like
'having unique enum values'
describe
'associations'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment