Add no-op license helper to CE
Add no-op license helper to CE to make it compatible with EE codebase. Helper will be overwritten in EE to allow for CE specs to be run under EE codebase. https://gitlab.com/gitlab-org/gitlab-ee/issues/6539
This commit is contained in:
parent
69c328a3ef
commit
3f16b445b7
|
@ -15,6 +15,7 @@ describe QuickActions::InterpretService do
|
||||||
let(:service) { described_class.new(project, developer) }
|
let(:service) { described_class.new(project, developer) }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
|
stub_licensed_features(multiple_issue_assignees: false)
|
||||||
project.add_developer(developer)
|
project.add_developer(developer)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,7 @@ RSpec.configure do |config|
|
||||||
metadata[:type] = match[1].singularize.to_sym if match
|
metadata[:type] = match[1].singularize.to_sym if match
|
||||||
end
|
end
|
||||||
|
|
||||||
|
config.include LicenseHelpers
|
||||||
config.include ActiveJob::TestHelper
|
config.include ActiveJob::TestHelper
|
||||||
config.include ActiveSupport::Testing::TimeHelpers
|
config.include ActiveSupport::Testing::TimeHelpers
|
||||||
config.include CycleAnalyticsHelpers
|
config.include CycleAnalyticsHelpers
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue