diff options
author | Gaurish Sharma <contact@gaurishsharma.com> | 2013-08-21 09:25:28 +0530 |
---|---|---|
committer | Gaurish Sharma <contact@gaurishsharma.com> | 2013-08-21 22:59:32 +0530 |
commit | e998edd2c02667af53dd55cff1b37a6d4661c181 (patch) | |
tree | bfa9152b7eb45df7e511da96830a2142ec6c9eec /activesupport | |
parent | a67b956d28f8c5dddcab65414d2469a2a89c3287 (diff) | |
download | rails-e998edd2c02667af53dd55cff1b37a6d4661c181.tar.gz rails-e998edd2c02667af53dd55cff1b37a6d4661c181.tar.bz2 rails-e998edd2c02667af53dd55cff1b37a6d4661c181.zip |
Define jruby_skip to skip test on JRuby
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/abstract_unit.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/test/abstract_unit.rb b/activesupport/test/abstract_unit.rb index 939bd7bfa8..1b295b0ce0 100644 --- a/activesupport/test/abstract_unit.rb +++ b/activesupport/test/abstract_unit.rb @@ -24,3 +24,8 @@ Thread.abort_on_exception = true # Show backtraces for deprecated behavior for quicker cleanup. ActiveSupport::Deprecation.debug = true + +# Skips the current run on JRuby using Minitest::Assertions#skip +def jruby_skip(message = '') + skip message if RUBY_ENGINE == 'jruby' +end |