From: Toshi MARUYAMA Date: Sat, 27 Aug 2011 08:46:29 +0000 (+0000) Subject: remove trailing white-spaces from test/integration/api_test/disabled_rest_api_test.rb. X-Git-Tag: 1.3.0~1293 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0cbd686a85cb664a1bcb59f02ed561816ff8f004;p=redmine.git 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 --- 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