#2203: Change the test testing API token access to test for ok instead of forbidden

This commit is contained in:
Jyri-Petteri Paloposki 2019-05-04 20:58:53 +03:00
parent d3ba80c84e
commit 78ef3141c6

View file

@ -260,10 +260,10 @@ class ProjectsControllerTest < ActionController::TestCase
assert_response 401
end
def test_xml_not_accessible_to_anonymous_user_with_valid_token
def test_xml_accessible_to_anonymous_user_with_valid_token
login_as nil
get :index, params: { :format => "xml", :token => users(:admin_user).token }
assert_response 401
assert_response :ok
end
end