Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-04-01 11:58:16 +0300
committerRémy Coutable <remy@rymai.me>2019-04-01 11:58:16 +0300
commite5aa2d88248b510b55c909d2ba4ee7b511927c86 (patch)
tree27a2f77bf263a7284b59ae0fa642ccafc6fb5d8a
parentf7e95de064cdfb25f0a15c729605cdb0d5112b81 (diff)
parent3f16b445b7d9395f67791ba3cf871fbb6df7485d (diff)
Merge branch '6539-extract-ee-specific-code' into 'master'
Add no-op license helper to CE See merge request gitlab-org/gitlab-ce!26723
-rw-r--r--spec/services/quick_actions/interpret_service_spec.rb1
-rw-r--r--spec/spec_helper.rb1
-rw-r--r--spec/support/helpers/license_helper.rb8
3 files changed, 10 insertions, 0 deletions
diff --git a/spec/services/quick_actions/interpret_service_spec.rb b/spec/services/quick_actions/interpret_service_spec.rb
index ea33d156c8a..8b0f9c8ade2 100644
--- a/spec/services/quick_actions/interpret_service_spec.rb
+++ b/spec/services/quick_actions/interpret_service_spec.rb
@@ -15,6 +15,7 @@ describe QuickActions::InterpretService do
let(:service) { described_class.new(project, developer) }
before do
+ stub_licensed_features(multiple_issue_assignees: false)
project.add_developer(developer)
end
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index b3bd453ebd6..60db3e1bc46 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -66,6 +66,7 @@ RSpec.configure do |config|
metadata[:type] = match[1].singularize.to_sym if match
end
+ config.include LicenseHelpers
config.include ActiveJob::TestHelper
config.include ActiveSupport::Testing::TimeHelpers
config.include CycleAnalyticsHelpers
diff --git a/spec/support/helpers/license_helper.rb b/spec/support/helpers/license_helper.rb
new file mode 100644
index 00000000000..4aaad55a8ef
--- /dev/null
+++ b/spec/support/helpers/license_helper.rb
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+
+# Placeholder module for EE implementation needed for CE specs to be run in EE codebase
+module LicenseHelpers
+ def stub_licensed_features(features)
+ # do nothing
+ end
+end