aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/request_forgery_protection_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-05-30 13:33:32 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-05-30 13:33:32 -0700
commitfd97266a3f684bf1d41f702251fcb69ad9bd6dda (patch)
tree67608320ffc575a2e53a85dbfa992e2654d8d057 /actionpack/test/controller/request_forgery_protection_test.rb
parentaab0d4e2c67df1bf05ddcb2b90bee8e5dfea5909 (diff)
parentab7a80ea22c94a006788eddfa3b92123b4031cb6 (diff)
downloadrails-fd97266a3f684bf1d41f702251fcb69ad9bd6dda.tar.gz
rails-fd97266a3f684bf1d41f702251fcb69ad9bd6dda.tar.bz2
rails-fd97266a3f684bf1d41f702251fcb69ad9bd6dda.zip
Merge pull request #6556 from lest/patch-1
accept a block in button_to helper
Diffstat (limited to 'actionpack/test/controller/request_forgery_protection_test.rb')
-rw-r--r--actionpack/test/controller/request_forgery_protection_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/request_forgery_protection_test.rb b/actionpack/test/controller/request_forgery_protection_test.rb
index 066cd523be..0289f4070b 100644
--- a/actionpack/test/controller/request_forgery_protection_test.rb
+++ b/actionpack/test/controller/request_forgery_protection_test.rb
@@ -9,7 +9,7 @@ module RequestForgeryProtectionActions
end
def show_button
- render :inline => "<%= button_to('New', '/') {} %>"
+ render :inline => "<%= button_to('New', '/') %>"
end
def external_form
@@ -79,7 +79,7 @@ class FreeCookieController < RequestForgeryProtectionController
end
def show_button
- render :inline => "<%= button_to('New', '/') {} %>"
+ render :inline => "<%= button_to('New', '/') %>"
end
end