diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-22 16:04:42 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-09-27 11:19:19 -0300 |
commit | 535371e956b648daff80b1c727b609749ac7137b (patch) | |
tree | c06dea8a68399d45632d78ab19a0b593d11845cd | |
parent | 2d274a520857b159bd4dd0206fc7cd09a9356b86 (diff) | |
download | rails-535371e956b648daff80b1c727b609749ac7137b.tar.gz rails-535371e956b648daff80b1c727b609749ac7137b.tar.bz2 rails-535371e956b648daff80b1c727b609749ac7137b.zip |
Fix indentation.
-rw-r--r-- | actionpack/test/controller/request_forgery_protection_test.rb | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/actionpack/test/controller/request_forgery_protection_test.rb b/actionpack/test/controller/request_forgery_protection_test.rb index 5af25a0894..2c9aa6187b 100644 --- a/actionpack/test/controller/request_forgery_protection_test.rb +++ b/actionpack/test/controller/request_forgery_protection_test.rb @@ -55,26 +55,25 @@ module RequestForgeryProtectionTests ActionController::Base.request_forgery_protection_token = nil end - def test_should_render_form_with_token_tag - get :index - assert_select 'form>div>input[name=?][value=?]', 'authenticity_token', @token - end - - def test_should_render_button_to_with_token_tag - get :show_button - assert_select 'form>div>input[name=?][value=?]', 'authenticity_token', @token - end - - def test_should_allow_get - get :index - assert_response :success - end - - def test_should_allow_post_without_token_on_unsafe_action - post :unsafe - assert_response :success - end + get :index + assert_select 'form>div>input[name=?][value=?]', 'authenticity_token', @token + end + + def test_should_render_button_to_with_token_tag + get :show_button + assert_select 'form>div>input[name=?][value=?]', 'authenticity_token', @token + end + + def test_should_allow_get + get :index + assert_response :success + end + + def test_should_allow_post_without_token_on_unsafe_action + post :unsafe + assert_response :success + end def test_should_not_allow_html_post_without_token @request.env['CONTENT_TYPE'] = Mime::URL_ENCODED_FORM.to_s |