[rspec-users] lots of nil problems!

Nick Hoffman lists at ruby-forum.com
Fri Mar 19 22:53:48 EDT 2010

Patrick Collins wrote:
> Hi,
> I have this in my controller action:
> from_address = Setting.find_by_name("shipping_from_address").address
> and my spec fails:
> NoMethodError in 'Admin::ShippingLabelsController should render a pdf 
> file'
> undefined method `address' for nil:NilClass
> ...snip...

Patrick, please create a new thread for this, since it doesn't have
anything to do with the current topic.
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list