aboutsummaryrefslogtreecommitdiff
path: root/ruby/tests/basic.rb
diff options
context:
space:
mode:
authorFeng Xiao <xfxyjwf@gmail.com>2018-07-17 18:50:04 -0700
committerGitHub <noreply@github.com>2018-07-17 18:50:04 -0700
commitd85ffdce419eb3e5b8444e2fed7c9e13f3b9637e (patch)
tree6224f98ad30e99dc2d896423853892f2142f16ed /ruby/tests/basic.rb
parent22503a01722939385a7584c3b65f1c43dc5b2ef8 (diff)
parent8356d270a54e18c21f4feac6f5e2b6f1061dc8d5 (diff)
downloadprotobuf-d85ffdce419eb3e5b8444e2fed7c9e13f3b9637e.tar.gz
protobuf-d85ffdce419eb3e5b8444e2fed7c9e13f3b9637e.tar.bz2
protobuf-d85ffdce419eb3e5b8444e2fed7c9e13f3b9637e.zip
Merge pull request #4924 from xfxyjwf/3.6.x
Cherry-pick master build fixes and kokoro changes to 3.6.x
Diffstat (limited to 'ruby/tests/basic.rb')
-rw-r--r--ruby/tests/basic.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/ruby/tests/basic.rb b/ruby/tests/basic.rb
index ad34d53d..d151022e 100644
--- a/ruby/tests/basic.rb
+++ b/ruby/tests/basic.rb
@@ -336,7 +336,9 @@ module BasicTest
# strings are immutable so we can't do this, but serialize should catch it.
m.optional_string = "asdf".encode!('UTF-8')
- assert_raise RuntimeError do
+ # Ruby 2.5 changed to raise FrozenError. However, assert_raise don't
+ # accept subclass. Don't specify type here.
+ assert_raise do
m.optional_string.encode!('ASCII-8BIT')
end
end