aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/spec
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2016-01-06 16:27:58 -0800
committerGravatar murgatroid99 <mlumish@google.com>2016-01-06 16:27:58 -0800
commit24e826ec5642a4bec8bcdc0fa554ceff9df6a942 (patch)
tree6c2cf7a37928cbafcb7c183199212fc6520b3ddd /src/ruby/spec
parent56fada5dfede3a7b1bc63a0da36dc7e509fd36dd (diff)
Updated dependencies, fixed a couple of tests
Diffstat (limited to 'src/ruby/spec')
-rw-r--r--src/ruby/spec/pb/health/checker_spec.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ruby/spec/pb/health/checker_spec.rb b/src/ruby/spec/pb/health/checker_spec.rb
index 794c5922fa..10d3a0705a 100644
--- a/src/ruby/spec/pb/health/checker_spec.rb
+++ b/src/ruby/spec/pb/health/checker_spec.rb
@@ -47,13 +47,12 @@ describe 'Health protobuf code generation' do
end
it 'should have the same content as created by code generation' do
- root_dir = File.dirname(
- File.dirname(File.dirname(File.dirname(__FILE__))))
- pb_dir = File.join(root_dir, 'pb')
+ root_dir = File.join(File.dirname(__FILE__), '..', '..', '..', '..')
+ pb_dir = File.join(root_dir, 'proto')
# Get the current content
- service_path = File.join(pb_dir, 'grpc', 'health', 'v1alpha',
- 'health_services.rb')
+ service_path = File.join(root_dir, 'ruby', 'pb', 'grpc',
+ 'health', 'v1alpha', 'health_services.rb')
want = nil
File.open(service_path) { |f| want = f.read }