summaryrefslogtreecommitdiff
path: root/spec/support/authentication.rb
blob: 47a7dc6f9f128e4e281e36552381e67f3ede4fcd (plain)
1
2
3
4
5
6
module HttpAuthentication
  def http_login(user, password = 'password')
    user_session = create(:session, user: user)
    cookies.signed[:raphael] = user_session.key
  end
end