From 6384933994a494a1ea44cb51609534c1ccf639e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 2 Aug 2019 00:24:11 -0400 Subject: Revert "You give jruby_skip & rubinius_skip a good name" This reverts commit 8d2866bb80fbe81acb04f5b0c44f152f571fb29f. --- railties/test/abstract_unit.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'railties') diff --git a/railties/test/abstract_unit.rb b/railties/test/abstract_unit.rb index 93d09aad55..9600194ed6 100644 --- a/railties/test/abstract_unit.rb +++ b/railties/test/abstract_unit.rb @@ -18,4 +18,19 @@ module TestApp end end +class ActiveSupport::TestCase + include ActiveSupport::Testing::Stream + + 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" -- cgit v1.2.3