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
c3bbbff6
Commit
c3bbbff6
authored
Apr 03, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
specs for repository tag_names, branch_names
parent
f8a4a760
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
spec/lib/gitlab/git/repository_spec.rb
spec/lib/gitlab/git/repository_spec.rb
+16
-0
No files found.
spec/lib/gitlab/git/repository_spec.rb
View file @
c3bbbff6
...
...
@@ -104,4 +104,20 @@ describe Gitlab::Git::Repository do
it
{
should
include
(
"f0f14c8eaba69ebddd766498a9d0b0e79becd633"
)
}
it
{
should_not
include
(
"bcf03b5de6c33f3869ef70d68cf06e679d1d7f9a"
)
}
end
describe
"branch names"
do
subject
{
repository
.
branch_names
}
it
{
should
have
(
32
).
elements
}
it
{
should
include
(
"master"
)
}
it
{
should_not
include
(
"branch-from-space"
)
}
end
describe
"tag names"
do
subject
{
repository
.
tag_names
}
it
{
should
have
(
16
).
elements
}
it
{
should
include
(
"v1.2.0"
)
}
it
{
should_not
include
(
"v5.0.0"
)
}
end
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