diff options
author | Rafael Mendonça França <rafael@franca.dev> | 2019-08-02 00:24:11 -0400 |
---|---|---|
committer | Rafael Mendonça França <rafael@franca.dev> | 2019-08-02 00:24:11 -0400 |
commit | 6384933994a494a1ea44cb51609534c1ccf639e4 (patch) | |
tree | 39f291c7f02f8b253ad6a7260abf0666ef1abd1e /railties | |
parent | a162fc22e8fe08ba017acf1bc7f19a8e6231a536 (diff) | |
download | rails-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 'railties')
-rw-r--r-- | railties/test/abstract_unit.rb | 15 |
1 files changed, 15 insertions, 0 deletions
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" |