aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2017-01-17 18:50:53 +0900
committerAkira Matsuda <ronnie@dio.jp>2017-01-17 18:51:50 +0900
commit146e9288001986cd3cfb2513ba8a606e00aeb61a (patch)
tree9cebd97f5af7edfcb4065e4eab30164a9cb829d5 /activesupport
parent4ad1a52f5ac0f2ee143aa5db05def6596ee6ffb0 (diff)
downloadrails-146e9288001986cd3cfb2513ba8a606e00aeb61a.tar.gz
rails-146e9288001986cd3cfb2513ba8a606e00aeb61a.tar.bz2
rails-146e9288001986cd3cfb2513ba8a606e00aeb61a.zip
Don't pollute Object with rubinius_skip and jruby_skip
we call them only in the tests
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/abstract_unit.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/activesupport/test/abstract_unit.rb b/activesupport/test/abstract_unit.rb
index 6b9daf0fe2..c4f34c0abf 100644
--- a/activesupport/test/abstract_unit.rb
+++ b/activesupport/test/abstract_unit.rb
@@ -24,16 +24,16 @@ 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
-# 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
-
class ActiveSupport::TestCase
include ActiveSupport::Testing::MethodCallAssertions
+
+ # Skips the current run on Rubinius using Minitest::Assertions#skip
+ private def rubinius_skip(message = "")
+ skip message if RUBY_ENGINE == "rbx"
+ end
+
+ # Skips the current run on JRuby using Minitest::Assertions#skip
+ private def jruby_skip(message = "")
+ skip message if defined?(JRUBY_VERSION)
+ end
end