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>2023-05-10 15:09:12 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-10 15:09:12 +0300
commit0e0df204c1a0d859ccbbe1be83a5e09a53381f17 (patch)
treee7bf6fed5fa2b74caf31957c468b0cbc303f4c45 /spec/lib/gitlab_spec.rb
parenta2344dbf1942dc3919c55b0684d2566368e03852 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab_spec.rb')
-rw-r--r--spec/lib/gitlab_spec.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/lib/gitlab_spec.rb b/spec/lib/gitlab_spec.rb
index c44bb64a5c0..8ed0a2df586 100644
--- a/spec/lib/gitlab_spec.rb
+++ b/spec/lib/gitlab_spec.rb
@@ -132,6 +132,28 @@ RSpec.describe Gitlab do
end
end
+ describe '.com_except_jh?' do
+ subject { described_class.com_except_jh? }
+
+ before do
+ allow(described_class).to receive(:com?).and_return(com?)
+ allow(described_class).to receive(:jh?).and_return(jh?)
+ end
+
+ using RSpec::Parameterized::TableSyntax
+
+ where(:com?, :jh?, :expected) do
+ true | true | false
+ true | false | true
+ false | true | false
+ false | false | false
+ end
+
+ with_them do
+ it { is_expected.to eq(expected) }
+ end
+ end
+
describe '.com' do
subject { described_class.com { true } }