aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafael@franca.dev>2019-08-02 00:24:11 -0400
committerRafael Mendonça França <rafael@franca.dev>2019-08-02 00:24:11 -0400
commit6384933994a494a1ea44cb51609534c1ccf639e4 (patch)
tree39f291c7f02f8b253ad6a7260abf0666ef1abd1e /activesupport/test
parenta162fc22e8fe08ba017acf1bc7f19a8e6231a536 (diff)
downloadrails-6384933994a494a1ea44cb51609534c1ccf639e4.tar.gz
rails-6384933994a494a1ea44cb51609534c1ccf639e4.tar.bz2
rails-6384933994a494a1ea44cb51609534c1ccf639e4.zip
Revert "You give jruby_skip & rubinius_skip a good name"
This reverts commit 8d2866bb80fbe81acb04f5b0c44f152f571fb29f.
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/abstract_unit.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/activesupport/test/abstract_unit.rb b/activesupport/test/abstract_unit.rb
index a14748a6b3..b46ad6842f 100644
--- a/activesupport/test/abstract_unit.rb
+++ b/activesupport/test/abstract_unit.rb
@@ -25,4 +25,17 @@ ActiveSupport.to_time_preserves_timezone = ENV["PRESERVE_TIMEZONES"] == "1"
# Disable available locale checks to avoid warnings running the test suite.
I18n.enforce_available_locales = false
+class ActiveSupport::TestCase
+ private
+ # Skips the current run on Rubinius using Minitest::Assertions#skip
+ def rubinius_skip(message = "")
+ skip message if RUBY_ENGINE == "rbx"
+ end
+
+ # Skips the current run on JRuby using Minitest::Assertions#skip
+ def jruby_skip(message = "")
+ skip message if defined?(JRUBY_VERSION)
+ end
+end
+
require_relative "../../tools/test_common"