We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aad96fe commit af0de46Copy full SHA for af0de46
spec/kracken/controllers/token_authenticatable_spec.rb
@@ -230,19 +230,6 @@ def authenticate_or_request_with_http_token(realm = nil)
230
a_controller.authenticate_user_with_token!
231
expect(a_controller.current_user).to be a_user
232
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
246
247
248
0 commit comments