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
f5a4adf4
Commit
f5a4adf4
authored
Feb 27, 2019
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce differences in spec/support/shared_contexts/services_shared_context.rb
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
37b184b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
spec/support/shared_contexts/services_shared_context.rb
spec/support/shared_contexts/services_shared_context.rb
+8
-0
No files found.
spec/support/shared_contexts/services_shared_context.rb
View file @
f5a4adf4
...
...
@@ -26,6 +26,14 @@ Service.available_services_names.each do |service|
end
end
before
do
if
service
==
'github'
&&
respond_to?
(
:stub_licensed_features
)
stub_licensed_features
(
github_project_service_integration:
true
)
project
.
clear_memoization
(
:disabled_services
)
project
.
clear_memoization
(
:licensed_feature_available
)
end
end
def
initialize_service
(
service
)
service_item
=
project
.
find_or_initialize_service
(
service
)
service_item
.
properties
=
service_attrs
...
...
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