capybara login with user scope

Developer from somewhere

If you have more than one user type, you can login as it from your tests using:

login_as(your_user, :scope => :admin)

The example above assumes that you also have an admin mapping, besides your User mapping.