aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-11-21 23:07:26 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-12-04 22:56:47 -0200
commit609c217628acb4e1a01c4c40055d6d3304710bc7 (patch)
treed558d60707f9658c98ec4f42c4b668e1f3f8f7df /railties/test/application
parent69ac53cfec067103427945b3ef137b9ce07294c9 (diff)
downloadrails-609c217628acb4e1a01c4c40055d6d3304710bc7.tar.gz
rails-609c217628acb4e1a01c4c40055d6d3304710bc7.tar.bz2
rails-609c217628acb4e1a01c4c40055d6d3304710bc7.zip
Rename verifier to message_verifier
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/configuration_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb
index e532190252..133055218a 100644
--- a/railties/test/application/configuration_test.rb
+++ b/railties/test/application/configuration_test.rb
@@ -276,13 +276,13 @@ module ApplicationTests
class ::OmgController < ActionController::Base
def index
- render text: Rails.application.verifier.generate("some_value")
+ render text: Rails.application.message_verifier.generate("some_value")
end
end
get "/"
- assert_equal 'some_value', Rails.application.verifier.verify(last_response.body)
+ assert_equal 'some_value', Rails.application.message_verifier.verify(last_response.body)
secret = app.key_generator.generate_key('application verifier')
verifier = ActiveSupport::MessageVerifier.new(secret)
@@ -298,7 +298,7 @@ module ApplicationTests
class ::OmgController < ActionController::Base
def index
- render text: Rails.application.verifier.generate("some_value")
+ render text: Rails.application.message_verifier.generate("some_value")
end
end