Testing Rails application with authentication

The following link might help with doing some help when testing applications that require authentication to perform certain actions.

https://github.com/plataformatec/devise/wiki/How-To:-Test-controllers-with-Rails-3-and-4-(and-RSpec).

Update: But you know what? Rather than trying to spoof an LDAP login session, it’s easier to install OpenLDAP and create a simple Person record and auth against that. It does mean that I won’t be doing any of this development on Windows, as if that was ever likely to cross my mind.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s