blob: 3e51218034cce83b68a87537e8ef6881c8b252b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- spec/unit/network/http/api/indirected_routes_spec.rb 2018-09-17 19:36:56.000000000 -0500
+++ spec/unit/network/http/api/indirected_routes_spec.rb 2018-09-19 10:52:35.841614932 -0500
@@ -143,15 +143,6 @@
_, _, _, _ = handler.uri2indirection("GET", uri_escaped, params)
end
- it "when the environment is unknown should remove :environment from params passed to check_authorization and therefore fail" do
- handler.expects(:check_authorization).with(anything,
- anything,
- Not(has_key(:environment)))
- expect(lambda { handler.uri2indirection("GET",
- "#{master_url_prefix}/node/bar",
- {:environment => 'bogus'}) }).to raise_error(not_found_error)
- end
-
it "should not URI unescape the indirection key as passed through to a call to check_authorization" do
handler.expects(:check_authorization).with(anything,
anything,
|