diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-02-20 15:57:33 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-02-20 15:57:33 +0300 |
commit | f42bf66eef7f690d629dc4535129a4fe69da813e (patch) | |
tree | 3a56fc1f480bdfe74283038fd2b3c2380c00dbcc /spec/lib/gitlab/git/commit_spec.rb | |
parent | 5048c8d5050cd432381d845997c5e7991e6590f1 (diff) |
Add unit tests for Gitaly types
Diffstat (limited to 'spec/lib/gitlab/git/commit_spec.rb')
-rw-r--r-- | spec/lib/gitlab/git/commit_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/gitlab/git/commit_spec.rb b/spec/lib/gitlab/git/commit_spec.rb index 85e6efd7ca2..0b20a6349a2 100644 --- a/spec/lib/gitlab/git/commit_spec.rb +++ b/spec/lib/gitlab/git/commit_spec.rb @@ -102,6 +102,10 @@ describe Gitlab::Git::Commit, seed_helper: true do expect(described_class.find(repository, SeedRepo::Commit::ID)).to be_valid_commit end + it "returns an array of parent ids" do + expect(described_class.find(repository, SeedRepo::Commit::ID).parent_ids).to be_an(Array) + end + it "should return valid commit for tag" do expect(described_class.find(repository, 'v1.0.0').id).to eq('6f6d7e7ed97bb5f0054f2b1df789b39ca89b6ff9') end |