Skip to content

Commit af0de46

Browse files
committed
Remove hold over from old logic.
The actual logic is duplicated across several other specs which more accurately reflect the new logic. So we remove the unnecessary duplication here.
1 parent aad96fe commit af0de46

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

spec/kracken/controllers/token_authenticatable_spec.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -230,19 +230,6 @@ def authenticate_or_request_with_http_token(realm = nil)
230230
a_controller.authenticate_user_with_token!
231231
expect(a_controller.current_user).to be a_user
232232
end
233-
234-
# TODO: Delete this test after implementation is complete
235-
# This is only to ensure we maintain general backwards compatibility
236-
it "authenticates the current user via the token" do
237-
controller = TokenAuthController.new
238-
controller.request.env = {
239-
'HTTP_AUTHORIZATION' => 'Token token="any token"'
240-
}
241-
242-
expect {
243-
controller.authenticate_user_with_token!
244-
}.to change { controller.current_user }.from(nil).to(a_user)
245-
end
246233
end
247234
end
248235
end

0 commit comments

Comments
 (0)