oops, fix broken current_user_spec

This commit is contained in:
Neil Lalonde 2014-04-28 14:01:22 -04:00
parent 1da59e7e2e
commit 495f78f574

View File

@ -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