mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 11:20:57 -06:00
90d7dd1f05
https://meta.discourse.org/t/a-post-in-looking-for-someone-to-customize-discourse-to-create-a-forum-site-requires-staff-attention/67468/5?u=tgxworld
10 lines
299 B
Ruby
10 lines
299 B
Ruby
module IntegrationHelpers
|
|
def sign_in(user)
|
|
password = 'somecomplicatedpassword'
|
|
user.update!(password: password)
|
|
Fabricate(:email_token, confirmed: true, user: user)
|
|
xhr :post, "/session.json", login: user.username, password: password
|
|
expect(response).to be_success
|
|
end
|
|
end
|