提交 4aca8060 编写于 作者: G Gaurish Sharma

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.
上级 db11682c
......@@ -458,12 +458,14 @@ def test_spring
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册