• R
    Make the isolated tests run on JRuby · 3136388e
    Robin Dupret 提交于
    As there is no forking on JRuby, we need to spawn sub-processes to make
    the tests run in isolation.
    
    Previously, we were defining globally env variables and running the test
    file through backticks and delete these variables once the test ran.
    
    Now, we simply rely on IO.popen as this is cross-platform and the env
    variables are available during the child-process execution only so there
    are no race conditions.
    
    [Ben Browning & Robin Dupret]
    3136388e
isolation.rb 2.6 KB