diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2018-07-02 15:11:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-02 15:11:36 -0700 |
commit | 78ba021b846e060d5b8f3424259d30a1f3ae4eef (patch) | |
tree | 901d1625c4e796aa89f4e2bdd331e59b48eaac3f /ruby/tests/basic.rb | |
parent | 2c30fa71e7af67ef42a3c71651ee5baedfb2fbfe (diff) |
Add continuous test for ruby 2.3, 2.4 and 2.5 (#4829)
* Add continuous test for ruby 2.3, 2.4 and 2.5
* Change ruby 2.5 to 2.5.0
* No need to provide argument to rb_funcall when argc is 0
* Fix tests for ruby 2.5
* Use rescue instead of assert_raise to accept subclass of error
Diffstat (limited to 'ruby/tests/basic.rb')
-rw-r--r-- | ruby/tests/basic.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ruby/tests/basic.rb b/ruby/tests/basic.rb index 9e9ff385..f174402b 100644 --- a/ruby/tests/basic.rb +++ b/ruby/tests/basic.rb @@ -350,7 +350,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 |