summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-02 11:09:56 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-09-02 11:09:56 +0000
commite1492f771c17480082d8e57125d4dca2a1a8e5f1 (patch)
treea9a4505cf52709ec451f757a9a7bf02fc813f715 /test/test_helper.rb
parent48b9b805b2790bebd5b042762270563a64f3d2c3 (diff)
downloadredmine-e1492f771c17480082d8e57125d4dca2a1a8e5f1.tar.gz
redmine-e1492f771c17480082d8e57125d4dca2a1a8e5f1.zip
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
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb8
1 files changed, 0 insertions, 8 deletions
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