ddollar/foreman — Issue #141: Unable to run specs on JRuby
Author: jc00ke
Created: 2012-01-22 20:46:53+00:00
State: open

Ignore the `ObjectSpace` warnings, but for some reason `rspec` isn't loading the `spec_helper` file on JRuby.

```
∴ ruby -v
jruby 1.6.5.1 (ruby-1.8.7-p330) (2011-12-27 1bf37c2) (OpenJDK 64-Bit Server VM 1.6.0_23) [linux-amd64-java]

∴ rake
/home/jesse/.rvm/rubies/jruby-1.6.5.1/bin/jruby -S rspec spec/foreman_spec.rb spec/helper_spec.rb spec/foreman/export_spec.rb spec/foreman/engine_spec.rb spec/foreman/process_spec.rb spec/foreman/cli_spec.rb spec/foreman/export/runit_spec.rb spec/foreman/export/upstart_spec.rb spec/foreman/export/bluepill_spec.rb
/home/jesse/.rvm/gems/jruby-1.6.5.1@foreman/gems/rr-1.0.2/lib/rr/injections/double_injection.rb:145 warning: ObjectSpace is disabled; _id2ref only supports immediates, pass -X+O to enable
/home/jesse/.rvm/gems/jruby-1.6.5.1@foreman/gems/rr-1.0.2/lib/rr/injections/double_injection.rb:145 warning: ObjectSpace is disabled; _id2ref only supports immediates, pass -X+O to enable
/home/jesse/.rvm/gems/jruby-1.6.5.1@foreman/gems/rr-1.0.2/lib/rr/injections/double_injection.rb:145 warning: ObjectSpace is disabled; _id2ref only supports immediates, pass -X+O to enable
/home/jesse/.rvm/gems/jruby-1.6.5.1@foreman/gems/rr-1.0.2/lib/rr/injections/double_injection.rb:145 warning: ObjectSpace is disabled; _id2ref only supports immediates, pass -X+O to enable
/home/jesse/.rvm/gems/jruby-1.6.5.1@foreman/gems/rr-1.0.2/lib/rr/injections/double_injection.rb:145 warning: ObjectSpace is disabled; _id2ref only supports immediates, pass -X+O to enable
/home/jesse/.rvm/gems/jruby-1.6.5.1@foreman/gems/rr-1.0.2/lib/rr/injections/double_injection.rb:145 warning: ObjectSpace is disabled; _id2ref only supports immediates, pass -X+O to enable
/home/jesse/.rvm/gems/jruby-1.6.5.1@foreman/gems/rr-1.0.2/lib/rr/injections/double_injection.rb:145 warning: ObjectSpace is disabled; _id2ref only supports immediates, pass -X+O to enable
/home/jesse/.rvm/gems/jruby-1.6.5.1@foreman/gems/rr-1.0.2/lib/rr/injections/double_injection.rb:145 warning: ObjectSpace is disabled; _id2ref only supports immediates, pass -X+O to enable
/home/jesse/.rvm/gems/jruby-1.6.5.1@foreman/gems/rr-1.0.2/lib/rr/injections/double_injection.rb:145 warning: ObjectSpace is disabled; _id2ref only supports immediates, pass -X+O to enable
/home/jesse/.rvm/gems/jruby-1.6.5.1@foreman/gems/rr-1.0.2/lib/rr/injections/double_injection.rb:145 warning: ObjectSpace is disabled; _id2ref only supports immediates, pass -X+O to enable
/home/jesse/.rvm/gems/jruby-1.6.5.1@foreman/gems/rr-1.0.2/lib/rr/injections/double_injection.rb:145 warning: ObjectSpace is disabled; _id2ref only supports immediates, FFFF..FFFFFFFpass -X+O to enable
LoadError: no such file to load -- spec_helper
require at org/jruby/RubyKernel.java:1038
(root) at /tmp/foreman/spec/foreman/cli_spec.rb:1
12:42:47 jesse@maynard:/tmp/foreman (git:jruby-spoon:b4cab08) jruby-1.6.5.1@foreman
```