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
24196ed6
Commit
24196ed6
authored
Apr 01, 2020
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use EEU_FEATURES during feature stubbing
This saves work during stubbing, and is just a lot clearer.
parent
3824edb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/spec/support/helpers/ee/license_helpers.rb
ee/spec/support/helpers/ee/license_helpers.rb
+2
-2
No files found.
ee/spec/support/helpers/ee/license_helpers.rb
View file @
24196ed6
...
...
@@ -15,8 +15,8 @@ module EE
prepended
do
def
stub_licensed_features
(
features
)
existing_features
=
License
::
FEATURES_BY_PLAN
.
values
.
flatten
.
map
(
&
:to_sym
)
missing_features
=
features
.
keys
.
map
(
&
:to_sym
)
-
existing_features
# EEU_FEATURES contains all the features we know about
missing_features
=
features
.
keys
.
map
(
&
:to_sym
)
-
License
::
EEU_FEATURES
if
missing_features
.
any?
subject
=
missing_features
.
join
(
', '
)
...
...
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