assert_throw, assert_nothing_thrown: support Ruby 2.2