File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
ruby/hyper-operation/spec/hyper-operation Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ def self.deserialize_dispatch(hash)
350350
351351 it 'can attach custom headers' do
352352 isomorphic do
353- class Operation < Hyperstack ::ControllerOp
353+ class ControllerOperation < Hyperstack ::ControllerOp
354354
355355 def self . headers # this runs on the client and adds custom headers
356356 { Authorization : '1234' }
@@ -362,12 +362,12 @@ def self.headers # this runs on the client and adds custom headers
362362 step { request . headers [ 'AUTHORIZATION' ] }
363363 end
364364 end
365- stub_const "OperationPolicy " , Class . new
366- OperationPolicy . always_allow_connection
365+ # stub_const "ControllerOperationPolicy ", Class.new
366+ # ControllerOperationPolicy .always_allow_connection
367367 mount 'Test'
368368
369369 expect_promise do
370- Operation . run
370+ ControllerOperation . run
371371 end . to eq ( '1234' )
372372 end
373373
You can’t perform that action at this time.
0 commit comments