[rspec-users] Class method not being stubbed

Nick Hoffman nick at deadorange.com
Thu May 28 08:15:20 EDT 2009


On Sun, May 24, 2009 at 3:25 PM, Rick DeNatale <rick.denatale at gmail.com> wrote:
> One thing which strikes me is that if Rails naming conventions were
> being followed:
>
>  1) the file name be lib/ad_sense_heaven_parser not lib/adsense_heaven_parser
>  2) the require wouldn't be needed since it would be autoloaded.
>
> Perhaps the problem lies there somewhere.

Hi Rick. I finally had some time to fix this problem, and you were
spot on. I moved
    lib/adsense_heaven_parser.rb
to
    app/models/ad_sense_heaven_parser.rb
and everything's smooth now.

Thanks for catching that!
-Nick


More information about the rspec-users mailing list