Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-08-11 08:44:40 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-09-01 23:58:38 +0300
commit454d227b45a563cb21ea8fa5091e687a2876380f (patch)
treedc43ff7ddfcb4b3ca22ffcf9b80e74eabd9bf6d1 /spec/support
parentafb2e6f48548ce3c5dc3279265bfd8b9dedf9e0d (diff)
Remove all permission checking from Reference filters
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/filter_spec_helper.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/support/filter_spec_helper.rb b/spec/support/filter_spec_helper.rb
index 755964e9a3d..25df3896291 100644
--- a/spec/support/filter_spec_helper.rb
+++ b/spec/support/filter_spec_helper.rb
@@ -55,20 +55,6 @@ module FilterSpecHelper
end
end
- # Stub CrossProjectReference#user_can_reference_project? to return true for
- # the current test
- def allow_cross_reference!
- allow_any_instance_of(described_class).
- to receive(:user_can_reference_project?).and_return(true)
- end
-
- # Stub CrossProjectReference#user_can_reference_project? to return false for
- # the current test
- def disallow_cross_reference!
- allow_any_instance_of(described_class).
- to receive(:user_can_reference_project?).and_return(false)
- end
-
# Shortcut to Rails' auto-generated routes helpers, to avoid including the
# module
def urls