[rspec-users] How to test a Rails 3 metal controller?

Thibaut Barrère thibaut.barrere at gmail.com
Thu Mar 24 05:39:48 EDT 2011

Hello David,

> Use a request spec (in spec/requests) instead of a controller spec.

Thanks, it worked perfectly!

I only encountered a "stack level too deep" error, which was solved by
upgrading rspec from 2.0.1 to 2.5.0, if it helps someone.

Thanks again!

-- Thibaut

More information about the rspec-users mailing list