Method: NamedTests#unimplemented_method
- Defined in:
- src/ruby/pb/test/client.rb
#unimplemented_method ⇒ Object
505 506 507 508 509 510 511 512 513 514 |
# File 'src/ruby/pb/test/client.rb', line 505 def unimplemented_method begin resp = @stub.unimplemented_call(Empty.new) rescue GRPC::Unimplemented => e return rescue Exception => e fail AssertionError, "Expected BadStatus. Received: #{e.inspect}" end fail AssertionError, "GRPC::Unimplemented should have been raised. Was not." end |