Skip to content

Commit 7d1f961

Browse files
committed
Patch new cache hash logic into spec shim
1 parent af0de46 commit 7d1f961

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/kracken/rspec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ module TokenAuthenticatable
4646
def current_user
4747
Kracken::SpecHelper.current_user
4848
end
49+
50+
def authenticate_user_with_token!
51+
if current_user
52+
@_auth_info = {
53+
id: current_user.id,
54+
team_ids: current_user.team_ids,
55+
}
56+
else
57+
super
58+
end
59+
end
4960
end
5061
end
5162
end

0 commit comments

Comments
 (0)