aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/http_basic_authentication_test.rb
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-12-07 14:46:06 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-12-07 14:46:06 -0500
commita53a7bea8096a163876bb9961deb60f6c96b1493 (patch)
treea9b0a4ccd1b00acd8624dd2ab728e270da35b8c9 /actionpack/test/controller/http_basic_authentication_test.rb
parentf53132deea65ae673b29b811c606be103f1ae3ab (diff)
downloadrails-a53a7bea8096a163876bb9961deb60f6c96b1493.tar.gz
rails-a53a7bea8096a163876bb9961deb60f6c96b1493.tar.bz2
rails-a53a7bea8096a163876bb9961deb60f6c96b1493.zip
update documentation and code to use _action callbacks
Diffstat (limited to 'actionpack/test/controller/http_basic_authentication_test.rb')
-rw-r--r--actionpack/test/controller/http_basic_authentication_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/http_basic_authentication_test.rb b/actionpack/test/controller/http_basic_authentication_test.rb
index 2dcfda02a7..90548d4294 100644
--- a/actionpack/test/controller/http_basic_authentication_test.rb
+++ b/actionpack/test/controller/http_basic_authentication_test.rb
@@ -2,9 +2,9 @@ require 'abstract_unit'
class HttpBasicAuthenticationTest < ActionController::TestCase
class DummyController < ActionController::Base
- before_filter :authenticate, :only => :index
- before_filter :authenticate_with_request, :only => :display
- before_filter :authenticate_long_credentials, :only => :show
+ before_action :authenticate, only: :index
+ before_action :authenticate_with_request, only: :display
+ before_action :authenticate_long_credentials, only: :show
http_basic_authenticate_with :name => "David", :password => "Goliath", :only => :search