[rspec-users] Rspec + Devise + BaseController

Ezequiel Delpero lists at ruby-forum.com
Wed Mar 20 18:21:12 UTC 2013


Finally I could solve the problem. The problem was on the definition of 
the anonymous controller on the spec:

instead of:

    controller do
      def index
      end
    end

I used:

    controller(Admins::Base) do
      def index
      end
    end

You need to specify always the anonymous controller you're testing 
unless is ApplicationController the one you're trying to test.

-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list