diff options
Diffstat (limited to 'spec/lib/gitlab/git/commit_spec.rb')
-rw-r--r-- | spec/lib/gitlab/git/commit_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/lib/gitlab/git/commit_spec.rb b/spec/lib/gitlab/git/commit_spec.rb index e5f8918f7bb..dd9f77f0211 100644 --- a/spec/lib/gitlab/git/commit_spec.rb +++ b/spec/lib/gitlab/git/commit_spec.rb @@ -420,7 +420,7 @@ RSpec.describe Gitlab::Git::Commit, feature_category: :source_code_management do commits = described_class.batch_by_oid(repository, oids) expect(commits.count).to eq(2) - expect(commits).to all( be_a(Gitlab::Git::Commit) ) + expect(commits).to all( be_a(described_class) ) expect(commits.first.sha).to eq(SeedRepo::Commit::ID) expect(commits.second.sha).to eq(SeedRepo::FirstCommit::ID) end @@ -476,7 +476,7 @@ RSpec.describe Gitlab::Git::Commit, feature_category: :source_code_management do let(:commit_id) { '0b4bc9a49b562e85de7cc9e834518ea6828729b9' } it 'returns signature and signed text' do - signature, signed_text = subject + signature, signed_text, signer = subject.values_at(:signature, :signed_text, :signer) expected_signature = <<~SIGNATURE -----BEGIN PGP SIGNATURE----- @@ -509,6 +509,7 @@ RSpec.describe Gitlab::Git::Commit, feature_category: :source_code_management do expect(signed_text).to eq(expected_signed_text) expect(signed_text).to be_a_binary_string + expect(signer).to eq(:SIGNER_USER) end end |