From: Toshi MARUYAMA Date: Sun, 2 Sep 2012 11:09:56 +0000 (+0000) Subject: remove redundant empty lines from test/test_helper.rb X-Git-Tag: 2.1.0~81 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e1492f771c17480082d8e57125d4dca2a1a8e5f1;p=redmine.git remove redundant empty lines from test/test_helper.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10278 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/test_helper.rb b/test/test_helper.rb index fb0ba77ad..12e70b9bf 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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