diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-27 21:09:04 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-27 21:09:04 +0300 |
commit | 390582e118752426acf5cb25ec99103d312d891c (patch) | |
tree | bb0b1a6a46632024ffc3ba1983e4ebcb0fab4428 /spec/lib/gitlab/git | |
parent | 1ea1db491c8bc90789acda45c9002aaa5c4dc498 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/git')
-rw-r--r-- | spec/lib/gitlab/git/rugged_impl/use_rugged_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab/git/rugged_impl/use_rugged_spec.rb b/spec/lib/gitlab/git/rugged_impl/use_rugged_spec.rb index 9b29046fce9..1e9083950d0 100644 --- a/spec/lib/gitlab/git/rugged_impl/use_rugged_spec.rb +++ b/spec/lib/gitlab/git/rugged_impl/use_rugged_spec.rb @@ -122,6 +122,12 @@ describe Gitlab::Git::RuggedImpl::UseRugged, :seed_helper do allow(Gitlab::Runtime).to receive(:puma?).and_return(true) end + it "returns false when Puma doesn't support the cli_config method" do + allow(::Puma).to receive(:respond_to?).with(:cli_config).and_return(false) + + expect(subject.running_puma_with_multiple_threads?).to be_falsey + end + it 'returns false for single thread Puma' do allow(::Puma).to receive_message_chain(:cli_config, :options).and_return(max_threads: 1) |