My rspec directory is beginning to get a little cluttered, so I moved all the specs to a cases directory. Upon doing so rspec stopped treating *_controller_spec.rb as :type => :controller. What is the magic way to get this behavior back?
My rspec directory is beginning to get a little cluttered, so I moved all
Share
Relevant comment form a discussion on the rspec-rails github page:
So basically, make a copy of this file and replace all the
specin calls toescaped_pathbyspec cases, then paste that into yourRSpec::configureblock. There might be an easier way to do it, this is just what I found after googling for a few seconds (never actually tried this myself).