diff options
Diffstat (limited to 'spec/support/shared_contexts/services_shared_context.rb')
-rw-r--r-- | spec/support/shared_contexts/services_shared_context.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/shared_contexts/services_shared_context.rb b/spec/support/shared_contexts/services_shared_context.rb index d92e8318fa0..089f1798cd2 100644 --- a/spec/support/shared_contexts/services_shared_context.rb +++ b/spec/support/shared_contexts/services_shared_context.rb @@ -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 |