The following will cause the test to get skipped in JRuby, but will need to be applied to each test that forks.
~~~ ruby
    def test_fork_safety
      # ...
    rescue NotImplementedError => error
      raise unless error.message =~ /fork is not available/
      skip(error.message)
    end
~~~