diff options
author | 2018-10-18 17:07:52 -0700 | |
---|---|---|
committer | 2018-10-18 17:07:52 -0700 | |
commit | da5d02fb4d41b5bd5996abc78ba025622d1bb25b (patch) | |
tree | 47adb55a3b5095c5f451844a684af9e12f24f8c7 /src/ruby | |
parent | 0c4f412e13270f187251867526ca64b6eb102830 (diff) | |
parent | f6e84176270df6012a74686a651a0a397e05ec51 (diff) |
Merge pull request #16921 from apolcyn/move_package_options_test
Move ruby test's package_options.proto file to ruby-specific directory
Diffstat (limited to 'src/ruby')
-rw-r--r-- | src/ruby/spec/pb/codegen/grpc/testing/package_options.proto | 28 | ||||
-rw-r--r-- | src/ruby/spec/pb/codegen/package_option_spec.rb | 5 |
2 files changed, 30 insertions, 3 deletions
diff --git a/src/ruby/spec/pb/codegen/grpc/testing/package_options.proto b/src/ruby/spec/pb/codegen/grpc/testing/package_options.proto new file mode 100644 index 0000000000..e7ecf8c196 --- /dev/null +++ b/src/ruby/spec/pb/codegen/grpc/testing/package_options.proto @@ -0,0 +1,28 @@ +// Copyright 2018 gRPC authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package grpc.testing; + +// For sanity checking package definitions +option ruby_package = "Grpc.Testing.Package.Options"; + +message TestRequest { } + +message TestResponse { } + +service TestService { + rpc GetTest(TestRequest) returns (TestResponse) { } +} diff --git a/src/ruby/spec/pb/codegen/package_option_spec.rb b/src/ruby/spec/pb/codegen/package_option_spec.rb index 46d23cd651..0ebd503d79 100644 --- a/src/ruby/spec/pb/codegen/package_option_spec.rb +++ b/src/ruby/spec/pb/codegen/package_option_spec.rb @@ -21,9 +21,8 @@ describe 'Code Generation Options' do fail 'CONFIG env variable unexpectedly unset' unless ENV['CONFIG'] bins_sub_dir = ENV['CONFIG'] - src_dir = File.join(File.dirname(__FILE__), '..', '..', '..', '..') - pb_dir = File.join(src_dir, 'proto') - bins_dir = File.join(src_dir, '..', 'bins', bins_sub_dir) + pb_dir = File.dirname(__FILE__) + bins_dir = File.join('..', '..', '..', '..', '..', 'bins', bins_sub_dir) plugin = File.join(bins_dir, 'grpc_ruby_plugin') protoc = File.join(bins_dir, 'protobuf', 'protoc') |