nbudin/devise_cas_authenticatable — Issue #36: problem with integration tests
Author: chebyte
Created: 2012-02-16 14:28:48+00:00
State: open

hi there, I have a question, I using CAS and I want to make integration test with capybara and test units, the problem is how can I do the login with capybara, I'm trying to stubs the login I dont need make a real login so I was seeing here

https://github.com/plataformatec/devise/wiki/How-To:-Test-with-Capybara

but I get

NoMethodError: undefined method `env' for nil:NilClass

I set the env to like this:

@request.env["devise.mapping"] = Devise.mappings[:user]

but returns the same error

so anyone knows what is the way for test this app with capybara through cas?

thanks