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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
40ed88b7
Commit
40ed88b7
authored
Jul 12, 2018
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whitespace
parent
d1d7144b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
spec/lib/gitlab/git/repository_spec.rb
spec/lib/gitlab/git/repository_spec.rb
+9
-9
No files found.
spec/lib/gitlab/git/repository_spec.rb
View file @
40ed88b7
...
@@ -1187,18 +1187,18 @@ describe Gitlab::Git::Repository, seed_helper: true do
...
@@ -1187,18 +1187,18 @@ describe Gitlab::Git::Repository, seed_helper: true do
end
end
describe
'#find_branch'
do
describe
'#find_branch'
do
it
'should return a Branch for master'
do
it
'should return a Branch for master'
do
branch
=
repository
.
find_branch
(
'master'
)
branch
=
repository
.
find_branch
(
'master'
)
expect
(
branch
).
to
be_a_kind_of
(
Gitlab
::
Git
::
Branch
)
expect
(
branch
).
to
be_a_kind_of
(
Gitlab
::
Git
::
Branch
)
expect
(
branch
.
name
).
to
eq
(
'master'
)
expect
(
branch
.
name
).
to
eq
(
'master'
)
end
end
it
'should handle non-existent branch'
do
it
'should handle non-existent branch'
do
branch
=
repository
.
find_branch
(
'this-is-garbage'
)
branch
=
repository
.
find_branch
(
'this-is-garbage'
)
expect
(
branch
).
to
eq
(
nil
)
expect
(
branch
).
to
eq
(
nil
)
end
end
end
end
describe
'#ref_name_for_sha'
do
describe
'#ref_name_for_sha'
do
...
...
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