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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-19 18:44:42 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-19 18:44:42 +0300
commit4555e1b21c365ed8303ffb7a3325d773c9b8bf31 (patch)
tree5423a1c7516cffe36384133ade12572cf709398d /spec/lib/gitlab/runtime_spec.rb
parente570267f2f6b326480d284e0164a6464ba4081bc (diff)
Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42
Diffstat (limited to 'spec/lib/gitlab/runtime_spec.rb')
-rw-r--r--spec/lib/gitlab/runtime_spec.rb14
1 files changed, 13 insertions, 1 deletions
diff --git a/spec/lib/gitlab/runtime_spec.rb b/spec/lib/gitlab/runtime_spec.rb
index 1ec14092c63..0fcb7db7d5f 100644
--- a/spec/lib/gitlab/runtime_spec.rb
+++ b/spec/lib/gitlab/runtime_spec.rb
@@ -42,7 +42,19 @@ RSpec.describe Gitlab::Runtime do
end
end
- context "puma" do
+ # Puma has no cli_config method unless `puma/cli` is required
+ context "puma without cli_config" do
+ let(:puma_type) { double('::Puma') }
+
+ before do
+ stub_const('::Puma', puma_type)
+ stub_env('ACTION_CABLE_IN_APP', 'false')
+ end
+
+ it_behaves_like "valid runtime", :puma, 1
+ end
+
+ context "puma with cli_config" do
let(:puma_type) { double('::Puma') }
let(:max_workers) { 2 }