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
This commit is contained in:
parent
48b9b805b2
commit
e1492f771c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue