mirror of
https://github.com/redmine/redmine.git
synced 2025-12-22 00:10:31 +01:00
Accept key auth for ProjectsController#show (#6841).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4444 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -32,6 +32,12 @@ class ApiTest::ProjectsTest < ActionController::IntegrationTest
|
||||
assert_equal 'application/xml', @response.content_type
|
||||
end
|
||||
|
||||
context "GET /projects/2.xml" do
|
||||
# TODO: A private project is needed because should_allow_api_authentication
|
||||
# actually tests that authentication is *required*, not just allowed
|
||||
should_allow_api_authentication(:get, "/projects/2.xml")
|
||||
end
|
||||
|
||||
def test_show
|
||||
get '/projects/1.xml'
|
||||
assert_response :success
|
||||
|
||||
Reference in New Issue
Block a user