]> source.dussan.org Git - redmine.git/commitdiff
remove redundant empty lines from test/test_helper.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 2 Sep 2012 11:09:56 +0000 (11:09 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 2 Sep 2012 11:09:56 +0000 (11:09 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10278 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/test_helper.rb

index fb0ba77ad95aa43119dbe2e0498061f24ecba4f3..12e70b9bf1e4014ebedab9942085e578b2368228 100644 (file)
@@ -288,7 +288,6 @@ class ActiveSupport::TestCase
         end
       end
     end
-
   end
 
   # Test that a request allows the API key with HTTP BASIC
@@ -312,7 +311,6 @@ class ActiveSupport::TestCase
           @token = Token.create!(:user => @user, :action => 'api')
           send(http_method, url, parameters, credentials(@token.value, 'X'))
         end
-
         should_respond_with success_code
         should_respond_with_content_type_based_on_url(url)
         should_be_a_valid_response_string_based_on_url(url)
@@ -327,7 +325,6 @@ class ActiveSupport::TestCase
           @token = Token.create!(:user => @user, :action => 'feeds')
           send(http_method, url, parameters, credentials(@token.value, 'X'))
         end
-
         should_respond_with failure_code
         should_respond_with_content_type_based_on_url(url)
         should "not login as the user" do
@@ -364,7 +361,6 @@ class ActiveSupport::TestCase
                         end
           send(http_method, request_url, parameters)
         end
-
         should_respond_with success_code
         should_respond_with_content_type_based_on_url(url)
         should_be_a_valid_response_string_based_on_url(url)
@@ -387,7 +383,6 @@ class ActiveSupport::TestCase
                         end
           send(http_method, request_url, parameters)
         end
-
         should_respond_with failure_code
         should_respond_with_content_type_based_on_url(url)
         should "not login as the user" do
@@ -404,7 +399,6 @@ class ActiveSupport::TestCase
         @token = Token.create!(:user => @user, :action => 'api')
         send(http_method, url, parameters, {'X-Redmine-API-Key' => @token.value.to_s})
       end
-
       should_respond_with success_code
       should_respond_with_content_type_based_on_url(url)
       should_be_a_valid_response_string_based_on_url(url)
@@ -433,7 +427,6 @@ class ActiveSupport::TestCase
     else
       raise "Unknown content type for should_respond_with_content_type_based_on_url: #{url}"
     end
-
   end
 
   # Uses the url to assert which format the response should be in
@@ -451,7 +444,6 @@ class ActiveSupport::TestCase
     else
       raise "Unknown content type for should_be_a_valid_response_based_on_url: #{url}"
     end
-
   end
 
   # Checks that the response is a valid JSON string