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 /activemodel | |
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 'activemodel')
-rw-r--r-- | activemodel/test/cases/helper.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/activemodel/test/cases/helper.rb b/activemodel/test/cases/helper.rb index 786b54983c..483a108bda 100644 --- a/activemodel/test/cases/helper.rb +++ b/activemodel/test/cases/helper.rb @@ -11,4 +11,17 @@ I18n.enforce_available_locales = false require "active_support/testing/autorun" require "active_support/core_ext/integer/time" +class ActiveModel::TestCase < 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" |