testing
This commit is contained in:
parent
177f9e6982
commit
e56cad5e3a
@ -18,8 +18,6 @@ class ApplicationController < ActionController::Base
|
|||||||
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
|
||||||
def authenticate_user_from_token!
|
def authenticate_user_from_token!
|
||||||
if request.headers["HTTP_AUTHORIZATION"]
|
if request.headers["HTTP_AUTHORIZATION"]
|
||||||
authenticate_or_request_with_http_token do |token, options|
|
authenticate_or_request_with_http_token do |token, options|
|
||||||
|
9
spec/controllers/application_controller_spec.rb
Normal file
9
spec/controllers/application_controller_spec.rb
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
require 'spec_helper'
|
||||||
|
|
||||||
|
describe ApplicationController do
|
||||||
|
|
||||||
|
it "can fail login" do
|
||||||
|
get "root#index"
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user