On Apr 15, 2011, at 11:02 AM, dblock wrote:

> I have an odd problem. I got controllers in a namespace and
> controllers outside of the namespace. For example, I have a
> PagesController and a Admin::PagesController.
> 
> When I run rspec from the top, tests pass and I get the following
> warning:
> 
> spec/controllers/admin/pages_controller_spec.rb:4: warning: toplevel
> constant PagesController referenced by Admin::PagesController
> 
> This makes no sense. I do have a PagesController and an
> Admin::PagesController and specs for both that are declared properly.
> 
> I get this for 3 out of about 20 controllers.
> 
> Any ideas?

Can you post the top 4 lines of pages_controller_spec?

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

Reply via email to