diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-03-02 13:48:45 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-03-02 13:48:45 -0300 |
commit | ed6be5962420e75a60ccc32c3fdf575f1c14ff9a (patch) | |
tree | 00581ab84b65309f8860c1fcd8875374a657151d /activesupport | |
parent | 521318333eaa2654b9ad535c592281ae9efb9113 (diff) | |
parent | 562b0b23684333be8766dc73c419f7b753933626 (diff) | |
download | rails-ed6be5962420e75a60ccc32c3fdf575f1c14ff9a.tar.gz rails-ed6be5962420e75a60ccc32c3fdf575f1c14ff9a.tar.bz2 rails-ed6be5962420e75a60ccc32c3fdf575f1c14ff9a.zip |
Merge pull request #19173 from robin850/rbx-build
Improve the Rubinius build
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/rescuable.rb | 2 | ||||
-rw-r--r-- | activesupport/test/core_ext/object/duplicable_test.rb | 3 | ||||
-rw-r--r-- | activesupport/test/json/encoding_test.rb | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/rescuable.rb b/activesupport/lib/active_support/rescuable.rb index 1a02acd5b1..67aac32742 100644 --- a/activesupport/lib/active_support/rescuable.rb +++ b/activesupport/lib/active_support/rescuable.rb @@ -100,7 +100,7 @@ module ActiveSupport # a string, otherwise a NameError will be raised by the interpreter # itself when rescue_from CONSTANT is executed. klass = self.class.const_get(klass_name) rescue nil - klass ||= klass_name.constantize rescue nil + klass ||= (klass_name.constantize rescue nil) klass === exception if klass end diff --git a/activesupport/test/core_ext/object/duplicable_test.rb b/activesupport/test/core_ext/object/duplicable_test.rb index d37f4bd0d8..042f5cfb34 100644 --- a/activesupport/test/core_ext/object/duplicable_test.rb +++ b/activesupport/test/core_ext/object/duplicable_test.rb @@ -9,6 +9,9 @@ class DuplicableTest < ActiveSupport::TestCase ALLOW_DUP << BigDecimal.new('4.56') def test_duplicable + rubinius_skip "* Method#dup is allowed at the moment on Rubinius\n" \ + "* https://github.com/rubinius/rubinius/issues/3089" + RAISE_DUP.each do |v| assert !v.duplicable? assert_raises(TypeError, v.class.name) { v.dup } diff --git a/activesupport/test/json/encoding_test.rb b/activesupport/test/json/encoding_test.rb index 63d921e3b4..2f269a66f0 100644 --- a/activesupport/test/json/encoding_test.rb +++ b/activesupport/test/json/encoding_test.rb @@ -130,6 +130,8 @@ class TestJSONEncoding < ActiveSupport::TestCase end def test_process_status + rubinius_skip "https://github.com/rubinius/rubinius/issues/3334" + # There doesn't seem to be a good way to get a handle on a Process::Status object without actually # creating a child process, hence this to populate $? system("not_a_real_program_#{SecureRandom.hex}") |