aboutsummaryrefslogtreecommitdiffhomepage
path: root/conformance/conformance_ruby.rb
diff options
context:
space:
mode:
authorGravatar Yilun Chong <yilunchong@google.com>2017-06-30 17:22:32 -0700
committerGravatar Yilun Chong <yilunchong@google.com>2017-06-30 17:22:32 -0700
commit3adb054bbfa83530ca5a5fd54a856755fd72af83 (patch)
tree4d09a00969cdc7833dca181d6910b79f5ac877ae /conformance/conformance_ruby.rb
parenta7d5be6a910caabc4b26d73bc5c369dbc638c4c3 (diff)
add some test proto2 supported, add js proto2 supported, fixed some error
Diffstat (limited to 'conformance/conformance_ruby.rb')
-rwxr-xr-xconformance/conformance_ruby.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/conformance/conformance_ruby.rb b/conformance/conformance_ruby.rb
index 0fd9e3f8..df63bf7c 100755
--- a/conformance/conformance_ruby.rb
+++ b/conformance/conformance_ruby.rb
@@ -37,15 +37,15 @@ $test_count = 0
$verbose = false
def do_test(request)
- test_message = ProtobufTestMessages::Proto3::TestAllTypes.new
+ test_message = ProtobufTestMessages::Proto3::TestAllTypesProto3.new
response = Conformance::ConformanceResponse.new
begin
case request.payload
when :protobuf_payload
- if request.message_type.eql?('protobuf_test_messages.proto3.TestAllTypes')
+ if request.message_type.eql?('protobuf_test_messages.proto3.TestAllTypesProto3')
begin
- test_message = ProtobufTestMessages::Proto3::TestAllTypes.decode(
+ test_message = ProtobufTestMessages::Proto3::TestAllTypesProto3.decode(
request.protobuf_payload)
rescue Google::Protobuf::ParseError => err
response.parse_error = err.message.encode('utf-8')
@@ -60,7 +60,7 @@ def do_test(request)
when :json_payload
begin
- test_message = ProtobufTestMessages::Proto3::TestAllTypes.decode_json(
+ test_message = ProtobufTestMessages::Proto3::TestAllTypesProto3.decode_json(
request.json_payload)
rescue Google::Protobuf::ParseError => err
response.parse_error = err.message.encode('utf-8')