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