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
65f68427
Commit
65f68427
authored
Feb 14, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Detect EE-specific facrories
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
182653a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ee/spec/factories/remote_mirrors.rb
ee/spec/factories/remote_mirrors.rb
+0
-2
ee/spec/support/factory_bot.rb
ee/spec/support/factory_bot.rb
+8
-0
No files found.
ee/spec/factories/remote_mirrors.rb
View file @
65f68427
require_relative
'../support/test_env'
FactoryBot
.
define
do
factory
:remote_mirror
,
class:
'RemoteMirror'
do
association
:project
,
:repository
...
...
ee/spec/support/factory_bot.rb
0 → 100644
View file @
65f68427
RSpec
.
configure
do
|
config
|
config
.
before
(
:suite
)
do
FactoryBot
.
definition_file_paths
=
[
Rails
.
root
.
join
(
'ee'
,
'spec'
,
'factories'
)
]
FactoryBot
.
find_definitions
end
end
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