1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Skip Spring App Generator tests on JRuby

Spring makes extensive use of Process.fork, so won't be able to provide
JRuby Support, hence skip these tests on JRuby.
This commit is contained in:
Gaurish Sharma 2014-01-13 02:33:05 +05:30
parent db11682c2b
commit 4aca806017

View file

@ -458,12 +458,14 @@ class AppGeneratorTest < Rails::Generators::TestCase
end
def test_spring_binstubs
skip "spring doesn't run on JRuby" if defined?(JRUBY_VERSION)
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)
Process.stubs(:respond_to?).with(:fork).returns(false)
run_generator