Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2cbad40f
Commit
2cbad40f
authored
Aug 24, 2017
by
Alejandro Rodríguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec for Gitlab::Git::Commit#rugged_commit
parent
4b75525e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
spec/lib/gitlab/git/commit_spec.rb
spec/lib/gitlab/git/commit_spec.rb
+11
-0
No files found.
spec/lib/gitlab/git/commit_spec.rb
View file @
2cbad40f
...
@@ -461,6 +461,17 @@ describe Gitlab::Git::Commit, seed_helper: true do
...
@@ -461,6 +461,17 @@ describe Gitlab::Git::Commit, seed_helper: true do
it
{
is_expected
.
not_to
include
(
"feature"
)
}
it
{
is_expected
.
not_to
include
(
"feature"
)
}
end
end
describe
'#rugged_commit'
do
let
(
:raw_commit
)
{
{
id:
SeedRepo
::
Commit
::
ID
}
}
let
(
:commit
)
{
described_class
.
decorate
(
repository
,
raw_commit
)
}
subject
{
commit
.
send
(
:rugged_commit
)
}
it
'returns a rugged commit based on the id of a non-rugged raw commit'
do
expect
(
subject
.
class
).
to
be
(
Rugged
::
Commit
)
expect
(
subject
).
to
eq
(
rugged_commit
)
end
end
def
sample_commit_hash
def
sample_commit_hash
{
{
author_email:
"dmitriy.zaporozhets@gmail.com"
,
author_email:
"dmitriy.zaporozhets@gmail.com"
,
...
...
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