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
2b321a39
Commit
2b321a39
authored
Sep 15, 2021
by
Mark Chao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convenience metadata to stub gitlab.com
Ensure GitlabSubscription factory is only used under .com
parent
8abd656e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
ee/spec/factories/gitlab_subscriptions.rb
ee/spec/factories/gitlab_subscriptions.rb
+4
-0
ee/spec/factories/groups.rb
ee/spec/factories/groups.rb
+1
-1
ee/spec/factories/namespaces.rb
ee/spec/factories/namespaces.rb
+1
-1
No files found.
ee/spec/factories/gitlab_subscriptions.rb
View file @
2b321a39
...
...
@@ -2,6 +2,10 @@
FactoryBot
.
define
do
factory
:gitlab_subscription
do
after
(
:build
)
do
raise
'not under .com'
unless
Gitlab
.
com?
end
namespace
association
:hosted_plan
,
factory: :ultimate_plan
seats
{
10
}
...
...
ee/spec/factories/groups.rb
View file @
2b321a39
...
...
@@ -73,7 +73,7 @@ FactoryBot.define do
factory
:group_with_plan
,
parent: :group
do
transient
do
plan
{
:
default
_plan
}
plan
{
:
free
_plan
}
trial_ends_on
{
nil
}
end
...
...
ee/spec/factories/namespaces.rb
View file @
2b321a39
...
...
@@ -47,7 +47,7 @@ end
FactoryBot
.
define
do
factory
:namespace_with_plan
,
parent: :namespace
do
transient
do
plan
{
:
default
_plan
}
plan
{
:
free
_plan
}
trial_ends_on
{
nil
}
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