summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-27 08:46:29 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-27 08:46:29 +0000
commit0cbd686a85cb664a1bcb59f02ed561816ff8f004 (patch)
tree1b6b55f51f5eea6c3bba390b321ac79a2fc8ffd7 /test/integration/api_test
parent2a2cc6baf0244c83e6e12ea3302d400f8123209d (diff)
downloadredmine-0cbd686a85cb664a1bcb59f02ed561816ff8f004.tar.gz
redmine-0cbd686a85cb664a1bcb59f02ed561816ff8f004.zip
remove trailing white-spaces from test/integration/api_test/disabled_rest_api_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6669 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test')
-rw-r--r--test/integration/api_test/disabled_rest_api_test.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/integration/api_test/disabled_rest_api_test.rb b/test/integration/api_test/disabled_rest_api_test.rb
index 13ad4a00d..9255435b8 100644
--- a/test/integration/api_test/disabled_rest_api_test.rb
+++ b/test/integration/api_test/disabled_rest_api_test.rb
@@ -12,7 +12,7 @@ class ApiTest::DisabledRestApiTest < ActionController::IntegrationTest
Setting.rest_api_enabled = '1'
Setting.login_required = '0'
end
-
+
# Using the NewsController because it's a simple API.
context "get /news with the API disabled" do
@@ -23,7 +23,7 @@ class ApiTest::DisabledRestApiTest < ActionController::IntegrationTest
@token = Token.generate!(:user => @user, :action => 'api')
get "/news.xml?key=#{@token.value}"
end
-
+
should_respond_with :unauthorized
should_respond_with_content_type :xml
should "not login as the user" do
@@ -37,7 +37,7 @@ class ApiTest::DisabledRestApiTest < ActionController::IntegrationTest
@authorization = ActionController::HttpAuthentication::Basic.encode_credentials(@user.login, 'my_password')
get "/news.xml", nil, :authorization => @authorization
end
-
+
should_respond_with :unauthorized
should_respond_with_content_type :xml
should "not login as the user" do
@@ -52,7 +52,7 @@ class ApiTest::DisabledRestApiTest < ActionController::IntegrationTest
@authorization = ActionController::HttpAuthentication::Basic.encode_credentials(@token.value, 'X')
get "/news.xml", nil, :authorization => @authorization
end
-
+
should_respond_with :unauthorized
should_respond_with_content_type :xml
should "not login as the user" do
@@ -68,7 +68,7 @@ class ApiTest::DisabledRestApiTest < ActionController::IntegrationTest
@token = Token.generate!(:user => @user, :action => 'api')
get "/news.json?key=#{@token.value}"
end
-
+
should_respond_with :unauthorized
should_respond_with_content_type :json
should "not login as the user" do
@@ -82,7 +82,7 @@ class ApiTest::DisabledRestApiTest < ActionController::IntegrationTest
@authorization = ActionController::HttpAuthentication::Basic.encode_credentials(@user.login, 'my_password')
get "/news.json", nil, :authorization => @authorization
end
-
+
should_respond_with :unauthorized
should_respond_with_content_type :json
should "not login as the user" do
@@ -104,7 +104,7 @@ class ApiTest::DisabledRestApiTest < ActionController::IntegrationTest
assert_equal User.anonymous, User.current
end
end
-
- end
+
+ end
end
end