Commit 3eaeee9a authored by Thong Kuah's avatar Thong Kuah

EE : Update method signatures which changed in CE

To recap: we want to be able to pass in group: group in the future.
parent 6d774778
......@@ -4,7 +4,7 @@ module EE
extend ::Gitlab::Utils::Override
override :can_create_cluster?
def can_create_cluster?
def can_create_cluster?(project)
super || project.feature_available?(:multiple_clusters)
end
end
......
......@@ -6,7 +6,7 @@ describe Clusters::CreateService do
let(:user) { create(:user) }
let!(:cluster) { create(:cluster, :provided_by_gcp, :production_environment, projects: [project]) }
subject { described_class.new(project, user, params).execute(access_token) }
subject { described_class.new(user, params).execute(project: project, access_token: access_token) }
before do
allow(project).to receive(:feature_available?).and_call_original
......
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