If I have a Devise model User, of which only those users with role :admin are allowed to view a certain url, how can I write an RSpec integration test to check that the stat
Ah, so close. This does the trick - I was missing the proper parameter form, and the redirecting.
post_via_redirect user_session_path, 'user[email]' => user.email, 'user[password]' => user.password