Forum: RSpec RSpec with devise test helpers

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
1f712389a6fd2218b34557197c049341?d=identicon&s=25 Paul O. (polivers)
on 2013-10-16 21:17
I've set my Rails (engine) project to include devise and other tools
like FactoryGirl.
I'd like to write some tests with contexts around anon/authenticated

In my spec_helper.rb's RSpec.configure block, I have this:

config.include Devise::TestHelpers, type: :controller

Which gives me this, when running rspec:

  1) PropertiesController GET 'index' returns http success
     Failure/Error: Unable to find matching line from backtrace
       no implicit conversion of nil into Hash
`block in warden'

Without the TestHelpers module included, the specs run (obviously none
of them have devise logic in them just yet).

Any ideas what's causing this error and how I can resolve it?

This topic is locked and can not be replied to.