Commit f5a4adf4 authored by Rémy Coutable's avatar Rémy Coutable

Reduce differences in spec/support/shared_contexts/services_shared_context.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 37b184b3
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment