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
Léo-Paul Géneau
gitlab-ce
Commits
4a437cdf
Commit
4a437cdf
authored
Aug 02, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless Protected branch test
parent
50831b1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
spec/models/protected_branch_spec.rb
spec/models/protected_branch_spec.rb
+0
-13
No files found.
spec/models/protected_branch_spec.rb
View file @
4a437cdf
...
@@ -37,19 +37,6 @@ describe ProtectedBranch do
...
@@ -37,19 +37,6 @@ describe ProtectedBranch do
end
end
end
end
describe
'#update_repository'
do
let
(
:gitolite
)
{
mock
}
subject
{
ProtectedBranch
.
new
(
:project
=>
project
)
}
it
"updates the branch's project repo permissions"
do
Gitlab
::
GitHost
.
should_receive
(
:system
).
and_return
(
gitolite
)
gitolite
.
should_receive
(
:update_project
).
with
(
project
.
path
,
project
)
subject
.
update_repository
end
end
describe
'#commit'
do
describe
'#commit'
do
subject
{
ProtectedBranch
.
new
(
:project
=>
project
,
:name
=>
'cant_touch_this'
)
}
subject
{
ProtectedBranch
.
new
(
:project
=>
project
,
:name
=>
'cant_touch_this'
)
}
...
...
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