In Ruby, the oneof case returns a symbol with the name of the field that is set. These were not previously tested.
@@ -128,6 +128,7 @@ module BasicTest
m.a = "foo"
assert_equal "foo", m.a
assert m.has_my_oneof?
+ assert_equal :a, m.my_oneof
m.clear_a
assert !m.has_my_oneof?
@@ -73,10 +73,11 @@ module BasicTestProto2
m = OneofMessage.new
+ assert m.has_my_oneof?
assert m.has_a?
assert OneofMessage.descriptor.lookup('a').has?(m)
- assert m.has_my_oneof?
assert !m.has_b?
assert !OneofMessage.descriptor.lookup('b').has?(m)
assert !m.has_c?