diff options
author | Josh Haberman <jhaberman@gmail.com> | 2016-07-25 01:26:14 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2016-07-25 01:26:14 -0700 |
commit | d07a9963df7c01d978c0749eb5753f98a3f0dc65 (patch) | |
tree | 988466b2010ee121799582f77fd54e6d1ac3c767 /ruby/tests | |
parent | ff7f68ae9fcf4f4e3bdef3c8c372c7ae91b7720b (diff) | |
download | protobuf-d07a9963df7c01d978c0749eb5753f98a3f0dc65.tar.gz protobuf-d07a9963df7c01d978c0749eb5753f98a3f0dc65.tar.bz2 protobuf-d07a9963df7c01d978c0749eb5753f98a3f0dc65.zip |
Ruby: fixed string freezing for JRuby.
Diffstat (limited to 'ruby/tests')
-rw-r--r-- | ruby/tests/basic.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ruby/tests/basic.rb b/ruby/tests/basic.rb index c7d8cdd1..f81e456c 100644 --- a/ruby/tests/basic.rb +++ b/ruby/tests/basic.rb @@ -861,8 +861,10 @@ module BasicTest m2 = TestMessage.decode_json(json) assert_equal 'foo', m2.optional_string assert_equal ['bar1', 'bar2'], m2.repeated_string - assert m2.optional_string.frozen? - assert m2.repeated_string[0].frozen? + if RUBY_PLATFORM != "java" + assert m2.optional_string.frozen? + assert m2.repeated_string[0].frozen? + end proto = m.to_proto m2 = TestMessage.decode(proto) |