sporkrb / spork

A DRb server for testing frameworks (RSpec / Cucumber currently) that forks before each run to ensure a clean testing state.
spork.rubyforge.org
MIT License
1.4k stars 202 forks source link

issue using spork with rails4 #227

Closed gprasant closed 11 years ago

gprasant commented 11 years ago

I tried to install spork and use it with a rails 4 app but it is failing. I am following the instructions verbatim in http://ruby.railstutorial.org/chapters/static-pages?version=4.0.

The error I get is

$ bundle exec spork 
Using RSpec, Rails
cannot load such file -- magazine/magazine_slave (LoadError)
/Users/pguruprasad/.rvm/gems/ruby-1.9.3-p362/gems/spork-1.0.0rc3/lib/spork/run_strategy/magazine.rb:18:in `require'
/Users/pguruprasad/.rvm/gems/ruby-1.9.3-p362/gems/spork-1.0.0rc3/lib/spork/run_strategy/magazine.rb:18:in `<top (required)>'
/Users/pguruprasad/.rvm/gems/ruby-1.9.3-p362/gems/spork-1.0.0rc3/lib/spork/run_strategy.rb:48:in `require'
/Users/pguruprasad/.rvm/gems/ruby-1.9.3-p362/gems/spork-1.0.0rc3/lib/spork/run_strategy.rb:48:in `block in <top (required)>'
/Users/pguruprasad/.rvm/gems/ruby-1.9.3-p362/gems/spork-1.0.0rc3/lib/spork/run_strategy.rb:48:in `each'
/Users/pguruprasad/.rvm/gems/ruby-1.9.3-p362/gems/spork-1.0.0rc3/lib/spork/run_strategy.rb:48:in `<top (required)>'
/Users/pguruprasad/.rvm/gems/ruby-1.9.3-p362/gems/spork-1.0.0rc3/lib/spork/runner.rb:73:in `run'
/Users/pguruprasad/.rvm/gems/ruby-1.9.3-p362/gems/spork-1.0.0rc3/lib/spork/runner.rb:10:in `run'
/Users/pguruprasad/.rvm/gems/ruby-1.9.3-p362/gems/spork-1.0.0rc3/bin/spork:10:in `<top (required)>'
/Users/pguruprasad/.rvm/gems/ruby-1.9.3-p362/bin/spork:19:in `load'
/Users/pguruprasad/.rvm/gems/ruby-1.9.3-p362/bin/spork:19:in `<main>'
/Users/pguruprasad/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in `eval'
/Users/pguruprasad/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in `<main>'

I can even find where this magazine_slave is on my machine.

sahilm commented 11 years ago

Support for Rails 4, Ruby 2.0, Cucumber 1.3.2 and Rspec 2.13.0 has landed on master. Please help me test by including spork-rails, :github => 'sporkrb/spork-rails' in your Gemfile.

CI builds for spork and spork-rails have been setup at https://travis-ci.org/sporkrb/spork and https://travis-ci.org/sporkrb/spork-rails respectively.