This commit is contained in:
Tyrel Souza 2014-04-25 12:03:33 -04:00
parent 177f9e6982
commit e56cad5e3a
2 changed files with 26 additions and 19 deletions

View File

@ -18,8 +18,6 @@ class ApplicationController < ActionController::Base
private
def authenticate_user_from_token!
if request.headers["HTTP_AUTHORIZATION"]
authenticate_or_request_with_http_token do |token, options|

View File

@ -0,0 +1,9 @@
require 'spec_helper'
describe ApplicationController do
it "can fail login" do
get "root#index"
end
end