Sha256: fae33e70eab3dcd7ae1d11fe8a880f57e4b364142e4263c12051e662b600b6fe
Contents?: true
Size: 766 Bytes
Versions: 3
Compression:
Stored size: 766 Bytes
Contents
require "spec_helper" describe ProtobufDescriptor::MethodDescriptor do it "is sane" do with_descriptor("service_rpc_test") do |descriptor| file_descriptor = descriptor["wearabouts_api/user"] service_descriptor = file_descriptor.services[:UserService] method_descriptor = service_descriptor.methods[:Authenticate] expect(method_descriptor.input_type_name).to eq(".WearaboutsApi.User.AuthenticateRequest") expect(method_descriptor.output_type_name).to eq(".WearaboutsApi.User.AuthenticateResponse") expect(method_descriptor.resolve_input_type).to eq(file_descriptor.messages[:AuthenticateRequest]) expect(method_descriptor.resolve_output_type).to eq(file_descriptor.messages[:AuthenticateResponse]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
protobuf_descriptor-1.1.2 | spec/method_descriptor_spec.rb |
protobuf_descriptor-1.1.1 | spec/method_descriptor_spec.rb |
protobuf_descriptor-1.1.0 | spec/method_descriptor_spec.rb |