mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
oops, fix broken current_user_spec
This commit is contained in:
parent
1da59e7e2e
commit
495f78f574
@ -3,7 +3,8 @@ require_dependency 'current_user'
|
||||
|
||||
describe CurrentUser do
|
||||
it "allows us to lookup a user from our environment" do
|
||||
user = Fabricate(:user, auth_token: EmailToken.generate_token)
|
||||
user = Fabricate(:user, auth_token: EmailToken.generate_token, active: true)
|
||||
EmailToken.confirm(user.auth_token)
|
||||
CurrentUser.lookup_from_env("HTTP_COOKIE" => "_t=#{user.auth_token};").should == user
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user