Search code examples
ruby-on-railsrubymacosrspecspork

Rails & rspec load time not improved by spork


I've followed the installation instructions for spork-rails

I couldn't get bundle exec spork to run and got the error

/opt/local/bin/spork:23:in `load': cannot load such file -- /opt/local/lib/ruby1.9/gems/1.9.1/gems/spork-1.0.0rc3/bin/spork (LoadError)
from /opt/local/bin/spork:23:in `<main>'

I am in /opt/local/lib/ruby1.9/gems/1.9.1/gems/spork-1.0.0rc3/bin/spork 's group and its permissions are 711.

Running sudo bundle exec spork works but when I then run bundle exec rspec spec it still takes 8+ seconds to load

I'm running:
ruby 1.9.3
rails 3.2.3
spork 1.0.0rc3
spork-rails 3.2.0
rspec 2.10.1
OSX 10.7.4
Installed with macports

UPDATE I've uninstalled macports ruby and reinstalled with rvm

This is allowing me todo bundle exec sport without sudo, but bundle exec rspec spec is still taking +8s to run


Solution

  • when you run rspec you need to pass in the argument "--drb" rspec --drb spec/