BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
3a91c166
Commit
3a91c166
authored
Feb 20, 2018
by
Sean McGivern
Committed by
Ian Baum
Feb 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'zj-unit-test-gitaly-arrays' into 'master'
Add unit tests for Gitaly types See merge request gitlab-org/gitlab-ce!17237
parent
3b86fb5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
blob_spec.rb
spec/lib/gitlab/git/blob_spec.rb
+1
-0
commit_spec.rb
spec/lib/gitlab/git/commit_spec.rb
+4
-0
No files found.
spec/lib/gitlab/git/blob_spec.rb
View file @
3a91c166
...
...
@@ -276,6 +276,7 @@ describe Gitlab::Git::Blob, seed_helper: true do
expect
(
blobs
.
count
).
to
eq
(
1
)
expect
(
blobs
).
to
all
(
be_a
(
Gitlab
::
Git
::
Blob
)
)
expect
(
blobs
).
to
be_an
(
Array
)
end
it
'accepts blob IDs as a lazy enumerator'
do
...
...
spec/lib/gitlab/git/commit_spec.rb
View file @
3a91c166
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment