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:
parent
db11682c2b
commit
4aca806017
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue