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:
Diffstat (limited to 'spec/lib/gitlab/git/commit_spec.rb')
-rw-r--r--spec/lib/gitlab/git/commit_spec.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/spec/lib/gitlab/git/commit_spec.rb b/spec/lib/gitlab/git/commit_spec.rb
index 49f1e6e994f..f58bab52cfa 100644
--- a/spec/lib/gitlab/git/commit_spec.rb
+++ b/spec/lib/gitlab/git/commit_spec.rb
@@ -369,11 +369,15 @@ RSpec.describe Gitlab::Git::Commit, :seed_helper do
commits.map { |c| c.id }
end
- it 'has 1 element' do
- expect(subject.size).to eq(1)
+ it { is_expected.to contain_exactly(SeedRepo::Commit::ID) }
+
+ context 'between_uses_list_commits FF disabled' do
+ before do
+ stub_feature_flags(between_uses_list_commits: false)
+ end
+
+ it { is_expected.to contain_exactly(SeedRepo::Commit::ID) }
end
- it { is_expected.to include(SeedRepo::Commit::ID) }
- it { is_expected.not_to include(SeedRepo::FirstCommit::ID) }
end
describe '.shas_with_signatures' do