diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-08-11 08:44:40 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-09-01 23:58:38 +0300 |
commit | 454d227b45a563cb21ea8fa5091e687a2876380f (patch) | |
tree | dc43ff7ddfcb4b3ca22ffcf9b80e74eabd9bf6d1 /spec/support | |
parent | afb2e6f48548ce3c5dc3279265bfd8b9dedf9e0d (diff) |
Remove all permission checking from Reference filters
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/filter_spec_helper.rb | 14 |
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 |