Skip to content

Instantly share code, notes, and snippets.

@davelnewton
Created August 23, 2012 23:48
Show Gist options
  • Save davelnewton/3443685 to your computer and use it in GitHub Desktop.
Save davelnewton/3443685 to your computer and use it in GitHub Desktop.
A JRuby, Rails, RSpec, Spork, and an error walk into a bar...
$ rspec --drb spec/models/foo_spec.rb .../rubies/jruby-1.6.7/lib/ruby/1.9/drb/drb.rb:375 warning:
ObjectSpace is disabled; _id2ref only supports immediates, pass -X+O to enable
NoMethodError: undefined method `flush' for nil:NilClass
method_missing at .../rubies/jruby-1.6.7/lib/ruby/1.9/drb/drb.rb:1099
run at .../gems/jruby-1.6.7@cowbania/gems/rspec-core-2.11.1/lib/rspec/core/drb_command_line.rb:22
run at .../gems/jruby-1.6.7@cowbania/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:63
autorun at .../gems/jruby-1.6.7@cowbania/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8
gem 'spork', '~> 1.0rc'
export JRUBY_OPTS="--1.9 -J-XX:MaxPermSize=512m -J-Xmx1g -X+O"
spork rspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment