templates/default/service/test/method/_bidi.erb in gapic-generator-0.6.8 vs templates/default/service/test/method/_bidi.erb in gapic-generator-0.6.9

- old
+ new

@@ -85,16 +85,16 @@ <%= method.name %>_client_stub.requests.each do |request| request.to_a.each do |r| assert_kind_of <%= method.request_type %>, r <%- fields.each do |field| -%> <%- if field.message? && field.repeated? && !field.map? -%> - assert_kind_of <%= field.type_name_full %>, r.<%= field.name %>.first + assert_kind_of <%= field.type_name_full %>, r["<%= field.name %>"].first <%- elsif field.map? -%> - assert_equal(<%= field.default_value %>, r.<%= field.name %>.to_h) + assert_equal(<%= field.default_value %>, r["<%= field.name %>"].to_h) <%- elsif field.message? -%> - assert_equal Gapic::Protobuf.coerce(<%= field.default_value %>, to: <%= field.type_name_full %>), r.<%= field.name %> + assert_equal Gapic::Protobuf.coerce(<%= field.default_value %>, to: <%= field.type_name_full %>), r["<%= field.name %>"] <%- else -%> - assert_equal <%= field.default_value %>, r.<%= field.name %> + assert_equal <%= field.default_value %>, r["<%= field.name %>"] <%- end -%> <%- if field.oneof? && !field.proto3_optional? -%> assert_equal :<%= field.name %>, r.<%= field.oneof_name %> <%- end -%> <%- if field.proto3_optional? -%>