aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2018-09-23 19:39:15 +0200
committerGitHub <noreply@github.com>2018-09-23 19:39:15 +0200
commit22dc2b3db894cb709c132456d787166839455a8e (patch)
tree860d7050325891b01735d9f69daf6db7fef3208c /activesupport
parent58f80d6be8d8ed4c7a11dfef5de0b8874807bfdc (diff)
parent0fe2bb816f60f4daf5d0d24468af94be971d0eaf (diff)
downloadrails-22dc2b3db894cb709c132456d787166839455a8e.tar.gz
rails-22dc2b3db894cb709c132456d787166839455a8e.tar.bz2
rails-22dc2b3db894cb709c132456d787166839455a8e.zip
Merge pull request #33949 from sjain1107/no-private-def
Remove private def
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/abstract_unit.rb27
1 files changed, 14 insertions, 13 deletions
diff --git a/activesupport/test/abstract_unit.rb b/activesupport/test/abstract_unit.rb
index f214898145..168d3655d3 100644
--- a/activesupport/test/abstract_unit.rb
+++ b/activesupport/test/abstract_unit.rb
@@ -29,17 +29,18 @@ I18n.enforce_available_locales = false
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
-
- def frozen_error_class
- Object.const_defined?(:FrozenError) ? FrozenError : RuntimeError
- end
+ 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
+
+ def frozen_error_class
+ Object.const_defined?(:FrozenError) ? FrozenError : RuntimeError
+ end
end