On Dec 13, 2011, at 6:39 PM, Jamie Orchard-hays wrote:

> Did you ever find a work-around? My Helper Specs are broken in Ruby 
> 1.9.2, Rails 2.3.14, but fine in Ruby 1.8.7.
> 
> I get
> 
> undefined method `response=' for nil:NilClass
> 
> The nil class is @controller.
> 
> Been pulling my hair out on this. I've been searching the 'net for this 
> problem, but finding almost nothing. (Makes me wonder if people are 
> testing their helper methods ;-)
> 
> Jamie
> 

Jamie,

Many people interact with this list by way of email and it's much easier on 
them if you quote the message when responding. If you don't, we don't have the 
context and have no idea what you might be asking. I had to go to the web forum 
to see what it was you were inquiring about.

I emailed Art directly a few months ago to ask if he found a solution, and this 
was his reply:

On 2011-09-07 12:49 AM, Art Peel wrote:
> Hi Phillip,
> 
> Yes, I did.  The problem turned out to be related to bundler.  The easiest 
> solution is to run "bundle exec spec" instead of just "spec".  
> 
> Another solution is to install the bundler binstubs as described at 
> http://gembundler.com/ and then run "bin/spec" instead of just "spec"
> 
> Hope this helps.
> 
> -- Art

This was what worked for Art, but it was unrelated to my experience with the 
problem (I wasn't using bundler at the time). Unfortunately, I don't recall how 
I resolved it. So this may work for you, and it may not.

Peace.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to