aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
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 /actionview/test
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 'actionview/test')
-rw-r--r--actionview/test/abstract_unit.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/actionview/test/abstract_unit.rb b/actionview/test/abstract_unit.rb
index fbdaa07fb0..dde66a7ba0 100644
--- a/actionview/test/abstract_unit.rb
+++ b/actionview/test/abstract_unit.rb
@@ -271,15 +271,15 @@ module ActionDispatch
end
end
-# 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