On 9/4/07, Shane Mingins <[EMAIL PROTECTED]> wrote: > > On 4/09/2007, at 3:44 PM, David Chelimsky wrote: > > > > > I am going to guess that it's something like this: > > > > You have a nil object when you didn't expect it! > > You might have expected an instance of Array. > > The error occurred while evaluating nil.<< > > > > If not, please post the error (good idea to do that in general). > > > > If so, this is fixed in trunk. Attached is a patch you can use to > > address it in your rails app (apply from vendor/plugins) > > > > Please let us know if this fixes the problem. > > > > Cheers, > > David > > > > > Boiled down the next routes problem in a helper spec ... using > with_routing > > it do > with_routing do |set| > > set.draw do |map| > map.resources :articles do |article| > article.resources :comments, :name_prefix => 'a_' do | > comment| > comment.resources :ratings, :name_prefix => 'a_c_' > end > end > end > > a_c_rating_path(@article, @comment, @rating).should == "/ > articles/1/comments/1/ratings/1" > > end > end > > This works fine in 1.05 and errors in 1.08 with the error: > > NoMethodError in 'CommentsHelper NO NAME (Because of Error raised in > matcher)'
The NO NAME part is because you wrote 'it do' with no message passed to it. > You have a nil object when you didn't expect it! > You might have expected an instance of Array. > The error occurred while evaluating nil.<< This looks like the same error - can you run just the file w/ this spec like this: spec path/to/file.rb -b That'll produce the full backtrace. Thanks > > Cheers > Shane > > > > > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users