[Rspec-users] stale spec runner?

aslak hellesoy aslak.hellesoy at gmail.com
Wed Sep 13 03:14:23 EDT 2006


On 9/13/06, Micah Martin <micah at 8thlight.com> wrote:
> I've been working with the RSpec on Rails plugin.  Great job guys!
>
> The Rails spec runner (server) definitely speeds things up nicely.  But I'm
> having some trouble keeping it functional.  When I start the server, the
> first spec execution runs fine.  Every following execution fails though.
> Each spec complains about the 'controller_path' missing from my controller.
> Odd.  This only seems to affect controller specs.  I've tried a few things
> to no avail.  Any tips?
>
> 1)
> NoMethodError in 'Guesser play start'
> undefined method `controller_path' for GuesserController:Class
> ./spec/controllers/guesser_spec.rb:18:in `play start'
> ./spec/controllers/guesser_spec.rb:17:in `play start'
>
> 2)
> NoMethodError in 'Guesser game gets created on new game'
> undefined method `controller_path' for GuesserController:Class
> ./spec/controllers/guesser_spec.rb:25:in `game gets created
> on new game'
> ./spec/controllers/guesser_spec.rb:23:in `game gets created
> on new game'
>
> 3)
> NoMethodError in 'Guesser game id in hidden input'
> undefined method `controller_path' for GuesserController:Class
> ./spec/controllers/guesser_spec.rb:32:in `game id in hidden
> input'
> ./spec/controllers/guesser_spec.rb:31:in `game id in hidden
> input'
>
> 4)
> NoMethodError in 'Guesser first guess gets saved'
> undefined method `controller_path' for GuesserController:Class
> ./spec/controllers/guesser_spec.rb:38:in `first guess gets
> saved'
> ./spec/controllers/guesser_spec.rb:37:in `first guess gets
> saved'
>

I think this might be fixed on trunk. Try this:

sudo gem uninstall rspec
Get the trunk from svn
rake gem
sudo gem install pkg/rspec....gem
install rspec_on_rails from trunk instead of tagged version

If this works, everything should be fine in the 0.6.4, which is right
around the corner

Aslak

>
> Micah Martin
> 8th Light, Inc.
> www.8thlight.com
>
>
> _______________________________________________
> Rspec-users mailing list
> Rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
>


More information about the Rspec-users mailing list