Commit 4a437cdf860880e45614f8afaeb6156f1c917f79

Authored by randx
1 parent 50831b1d

Remove useless Protected branch test

Showing 1 changed file with 0 additions and 13 deletions   Show diff stats
spec/models/protected_branch_spec.rb
@@ -37,19 +37,6 @@ describe ProtectedBranch do @@ -37,19 +37,6 @@ describe ProtectedBranch do
37 end 37 end
38 end 38 end
39 39
40 - describe '#update_repository' do  
41 - let(:gitolite) { mock }  
42 -  
43 - subject { ProtectedBranch.new(:project => project) }  
44 -  
45 - it "updates the branch's project repo permissions" do  
46 - Gitlab::GitHost.should_receive(:system).and_return(gitolite)  
47 - gitolite.should_receive(:update_project).with(project.path, project)  
48 -  
49 - subject.update_repository  
50 - end  
51 - end  
52 -  
53 describe '#commit' do 40 describe '#commit' do
54 subject { ProtectedBranch.new(:project => project, :name => 'cant_touch_this') } 41 subject { ProtectedBranch.new(:project => project, :name => 'cant_touch_this') }
55 42