Permalink
Browse files

no need to pass an empty block to button_to helper

  • Loading branch information...
1 parent d5025f1 commit 1376f4cab1eb27cd54718a7e6d7f50215c7340e5 @lest lest committed May 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/controller/request_forgery_protection_test.rb
View
4 actionpack/test/controller/request_forgery_protection_test.rb
@@ -9,7 +9,7 @@ def index
end
def show_button
- render :inline => "<%= button_to('New', '/') {} %>"
+ render :inline => "<%= button_to('New', '/') %>"
end
def external_form
@@ -79,7 +79,7 @@ def index
end
def show_button
- render :inline => "<%= button_to('New', '/') {} %>"
+ render :inline => "<%= button_to('New', '/') %>"
end
end

0 comments on commit 1376f4c

Please sign in to comment.