Skip to content

Commit 027e69f

Browse files
committed
fixed spec for #168
1 parent 5e9cc05 commit 027e69f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ruby/hyper-operation/spec/hyper-operation/server_op_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)