aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/app_generator_test.rb
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 /railties/test/generators/app_generator_test.rb
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 'railties/test/generators/app_generator_test.rb')
-rw-r--r--railties/test/generators/app_generator_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 56b25e4d9c..8246e76607 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -458,14 +458,14 @@ class AppGeneratorTest < Rails::Generators::TestCase
end
def test_spring_binstubs
- skip "spring doesn't run on JRuby" if defined?(JRUBY_VERSION)
+ jruby_skip "spring doesn't run on JRuby"
generator.stubs(:bundle_command).with('install')
generator.expects(:bundle_command).with('exec spring binstub --all').once
quietly { generator.invoke_all }
end
def test_spring_no_fork
- skip "spring doesn't run on JRuby" if defined?(JRUBY_VERSION)
+ jruby_skip "spring doesn't run on JRuby"
Process.stubs(:respond_to?).with(:fork).returns(false)
run_generator