From 8a3807c83880f71612b1e092c49e865d24e29704 Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Wed, 28 May 2014 12:40:22 +0300
Subject: [PATCH] Fix tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
---
 spec/models/merge_request_spec.rb | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb
index a10673fda9c..81a48699cd8 100644
--- a/spec/models/merge_request_spec.rb
+++ b/spec/models/merge_request_spec.rb
@@ -82,25 +82,6 @@ describe MergeRequest do
     end
   end
 
-  describe '#allow_source_branch_removal?' do
-    it 'should not allow removal when mr is a fork' do
-
-      subject.disallow_source_branch_removal?.should be_true
-    end
-    it 'should not allow removal when the mr is not a fork, but the source branch is the root reference' do
-      subject.target_project = subject.source_project
-      subject.source_branch = subject.source_project.repository.root_ref
-      subject.disallow_source_branch_removal?.should be_true
-    end
-
-    it 'should not disallow removal when the mr is not a fork, and but source branch is not the root reference' do
-      subject.target_project = subject.source_project
-      subject.source_branch = "Something Different #{subject.source_project.repository.root_ref}"
-      subject.for_fork?.should be_false
-      subject.disallow_source_branch_removal?.should be_false
-    end
-  end
-
   describe 'detection of issues to be closed' do
     let(:issue0) { create :issue, project: subject.project }
     let(:issue1) { create :issue, project: subject.project }
-- 
2.30.9