aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/spec/generic/service_spec.rb
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-01-15 11:39:08 -0800
committerGravatar David Garcia Quintas <dgq@google.com>2016-01-15 11:39:08 -0800
commit17fe83b5badc51761953654823319cbc450dc977 (patch)
tree5ff5d2e9587c2232ab62066f995ffd88b6d63881 /src/ruby/spec/generic/service_spec.rb
parent45484b31bbe736d6effb630ca0bc642856e883d1 (diff)
parent15bad3fba745043aa9b1cef83e4929486b40a548 (diff)
Merge branch 'master' of github.com:grpc/grpc into check_newlines
Diffstat (limited to 'src/ruby/spec/generic/service_spec.rb')
-rw-r--r--src/ruby/spec/generic/service_spec.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ruby/spec/generic/service_spec.rb b/src/ruby/spec/generic/service_spec.rb
index 6cfc34db84..5e7b6c7aba 100644
--- a/src/ruby/spec/generic/service_spec.rb
+++ b/src/ruby/spec/generic/service_spec.rb
@@ -241,7 +241,7 @@ describe GenericService do
end
describe 'the generated instances' do
- it 'can be instanciated with just a hostname' do
+ it 'can be instanciated with just a hostname and credentials' do
s = Class.new do
include GenericService
rpc :AnRpc, GoodMsg, GoodMsg
@@ -250,7 +250,10 @@ describe GenericService do
rpc :ABidiStreamer, stream(GoodMsg), stream(GoodMsg)
end
client_class = s.rpc_stub_class
- expect { client_class.new('fakehostname') }.not_to raise_error
+ blk = proc do
+ client_class.new('fakehostname', :this_channel_is_insecure)
+ end
+ expect(&blk).not_to raise_error
end
it 'has the methods defined in the service' do
@@ -262,7 +265,7 @@ describe GenericService do
rpc :ABidiStreamer, stream(GoodMsg), stream(GoodMsg)
end
client_class = s.rpc_stub_class
- o = client_class.new('fakehostname')
+ o = client_class.new('fakehostname', :this_channel_is_insecure)
expect(o.methods).to include(:an_rpc)
expect(o.methods).to include(:a_bidi_streamer)
expect(o.methods).to include(:a_client_streamer)