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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
6857b92f
Commit
6857b92f
authored
Mar 08, 2016
by
Yorick Peterse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added specs for Repository#rm_tag
parent
177025b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
spec/models/repository_spec.rb
spec/models/repository_spec.rb
+11
-0
No files found.
spec/models/repository_spec.rb
View file @
6857b92f
...
@@ -659,4 +659,15 @@ describe Repository, models: true do
...
@@ -659,4 +659,15 @@ describe Repository, models: true do
repository
.
rm_branch
(
user
,
'feature'
)
repository
.
rm_branch
(
user
,
'feature'
)
end
end
end
end
describe
'#rm_tag'
do
it
'removes a tag'
do
expect
(
repository
).
to
receive
(
:before_remove_tag
)
expect_any_instance_of
(
Gitlab
::
Shell
).
to
receive
(
:rm_tag
).
with
(
repository
.
path_with_namespace
,
'8.5'
)
repository
.
rm_tag
(
'8.5'
)
end
end
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