aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/request_forgery_protection_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafael.franca@plataformatec.com.br>2014-08-17 22:51:13 -0300
committerRafael Mendonça França <rafael.franca@plataformatec.com.br>2014-08-17 22:51:13 -0300
commitcdc00aba62ffb0f0af452f5152aafeb5e490962e (patch)
tree071ca4766dd07b9af34bbebf902c50a27c5c2b4d /actionpack/test/controller/request_forgery_protection_test.rb
parentcc9091c3e719facd0f73c8ab425a5bb9a7d0a65b (diff)
parentc78da4d5c472f7254ed609ef753d7b1719732802 (diff)
downloadrails-cdc00aba62ffb0f0af452f5152aafeb5e490962e.tar.gz
rails-cdc00aba62ffb0f0af452f5152aafeb5e490962e.tar.bz2
rails-cdc00aba62ffb0f0af452f5152aafeb5e490962e.zip
Merge branch 'loofah'
Conflicts: Gemfile
Diffstat (limited to 'actionpack/test/controller/request_forgery_protection_test.rb')
-rw-r--r--actionpack/test/controller/request_forgery_protection_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/controller/request_forgery_protection_test.rb b/actionpack/test/controller/request_forgery_protection_test.rb
index 2a5aad9c0e..05ad8b6cdc 100644
--- a/actionpack/test/controller/request_forgery_protection_test.rb
+++ b/actionpack/test/controller/request_forgery_protection_test.rb
@@ -389,7 +389,8 @@ class RequestForgeryProtectionControllerUsingResetSessionTest < ActionController
SecureRandom.stubs(:base64).returns(@token + '<=?')
get :meta
assert_select 'meta[name=?][content=?]', 'csrf-param', 'custom_authenticity_token'
- assert_select 'meta[name=?][content=?]', 'csrf-token', 'cf50faa3fe97702ca1ae&lt;=?'
+ assert_select 'meta[name=?]', 'csrf-token'
+ assert_match(/cf50faa3fe97702ca1ae&lt;=\?/, @response.body)
end
end