aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer
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 /actionmailer
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 'actionmailer')
-rw-r--r--actionmailer/test/abstract_unit.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/actionmailer/test/abstract_unit.rb b/actionmailer/test/abstract_unit.rb
index 51de03c4ce..a646cbd581 100644
--- a/actionmailer/test/abstract_unit.rb
+++ b/actionmailer/test/abstract_unit.rb
@@ -31,15 +31,15 @@ I18n.enforce_available_locales = false
FIXTURE_LOAD_PATH = File.expand_path("fixtures", File.dirname(__FILE__))
ActionMailer::Base.view_paths = FIXTURE_LOAD_PATH
-# 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