Commit 4a437cdf authored by randx's avatar randx

Remove useless Protected branch test

parent 50831b1d
...@@ -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') }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment