aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorGaurish Sharma <contact@gaurishsharma.com>2013-08-21 09:25:28 +0530
committerGaurish Sharma <contact@gaurishsharma.com>2013-08-21 22:59:32 +0530
commite998edd2c02667af53dd55cff1b37a6d4661c181 (patch)
treebfa9152b7eb45df7e511da96830a2142ec6c9eec /activesupport
parenta67b956d28f8c5dddcab65414d2469a2a89c3287 (diff)
downloadrails-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.rb5
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