Is Devise included in your application_controller yet? The line this
appears to be complaining about appears to be one that creates the
fake Warden instance and tries to merge in the Devise.warden_config

https://github.com/plataformatec/devise/blob/master/lib/devise/test_helpers.rb

That is assuming the current version of Devise on github is 3.0.0.

I am wondering if you have Devise in your controllers and if it is
configured yet. 

Quoting Paul Ols <li...@ruby-forum.com>:
> 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
> users.
> 
> 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
>      TypeError:
>        no implicit conversion of nil into Hash
>      #
> /Users/phendrick/.rvm/gems/ruby-2.0.0-p0@hendrickdev.brightnest/gems/devise-3.0.0/lib/devise/test_helpers.rb:31:in
> `merge!'
>      #
> /Users/phendrick/.rvm/gems/ruby-2.0.0-p0@hendrickdev.brightnest/gems/devise-3.0.0/lib/devise/test_helpers.rb:31:in
> `block in warden'
>      #
> /Users/phendrick/.rvm/gems/ruby-2.0.0-p0@hendrickdev.brightnest/gems/warden-1.2.3/lib/warden/manager.rb:23:in
> `initialize'
> ...
> 
> 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?
> 
> thanks.
> 
> -- 
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

-- 
Cynthia N. Kiser
c...@ugcs.caltech.edu
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to