diff options
author | Rémy Coutable <remy@rymai.me> | 2019-02-27 20:00:13 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-03-07 10:13:38 +0300 |
commit | f5a4adf4622dfa4fdd751c8cbcb7028bdc7fd7e3 (patch) | |
tree | e7a1886ccc53dd8828d6371604817e887478ed8c /spec/support | |
parent | 37b184b3392010515895a1028fe096187a4a6696 (diff) |
Reduce differences in spec/support/shared_contexts/services_shared_context.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/support')
-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 |