Skip to content
This repository
Browse code

Fix indentation.

  • Loading branch information...
commit 535371e956b648daff80b1c727b609749ac7137b 1 parent 2d274a5
Emilio Tagua authored September 22, 2010
37  actionpack/test/controller/request_forgery_protection_test.rb
@@ -55,26 +55,25 @@ def teardown
55 55
     ActionController::Base.request_forgery_protection_token = nil
56 56
   end
57 57
 
58  
-
59 58
   def test_should_render_form_with_token_tag
60  
-     get :index
61  
-     assert_select 'form>div>input[name=?][value=?]', 'authenticity_token', @token
62  
-   end
63  
-
64  
-   def test_should_render_button_to_with_token_tag
65  
-     get :show_button
66  
-     assert_select 'form>div>input[name=?][value=?]', 'authenticity_token', @token
67  
-   end
68  
-
69  
-   def test_should_allow_get
70  
-     get :index
71  
-     assert_response :success
72  
-   end
73  
-
74  
-   def test_should_allow_post_without_token_on_unsafe_action
75  
-     post :unsafe
76  
-     assert_response :success
77  
-   end
  59
+    get :index
  60
+    assert_select 'form>div>input[name=?][value=?]', 'authenticity_token', @token
  61
+  end
  62
+
  63
+  def test_should_render_button_to_with_token_tag
  64
+    get :show_button
  65
+    assert_select 'form>div>input[name=?][value=?]', 'authenticity_token', @token
  66
+  end
  67
+
  68
+  def test_should_allow_get
  69
+    get :index
  70
+    assert_response :success
  71
+  end
  72
+
  73
+  def test_should_allow_post_without_token_on_unsafe_action
  74
+    post :unsafe
  75
+    assert_response :success
  76
+  end
78 77
 
79 78
   def test_should_not_allow_html_post_without_token
80 79
     @request.env['CONTENT_TYPE'] = Mime::URL_ENCODED_FORM.to_s

0 notes on commit 535371e

Please sign in to comment.
Something went wrong with that request. Please try again.