aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorGaurish Sharma <contact@gaurishsharma.com>2014-01-13 16:54:06 +0530
committerGaurish Sharma <contact@gaurishsharma.com>2014-01-13 19:51:47 +0530
commit35e56f6fa535288abf1de7fa70c2faed5e2d88ff (patch)
treebee054c3f8c108ad8976c15259a53dba255c64db /actionview
parentee4b5f1b8aedc59d94e72e1f0689de48e3b477bb (diff)
downloadrails-35e56f6fa535288abf1de7fa70c2faed5e2d88ff.tar.gz
rails-35e56f6fa535288abf1de7fa70c2faed5e2d88ff.tar.bz2
rails-35e56f6fa535288abf1de7fa70c2faed5e2d88ff.zip
standardize on jruby_skip & rbx_skip
This Adds helpers(jruby_skip & rbx_skip). In Future, Plan is to use these helpers instead of calls directly to RUBY_ENGINE/RbConfig/JRUBY_VERSION
Diffstat (limited to 'actionview')
-rw-r--r--actionview/test/abstract_unit.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/actionview/test/abstract_unit.rb b/actionview/test/abstract_unit.rb
index 9928da4774..9eae3a4fbd 100644
--- a/actionview/test/abstract_unit.rb
+++ b/actionview/test/abstract_unit.rb
@@ -331,3 +331,11 @@ 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