mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-21 21:40:48 +02:00
#2203: Change the test testing API token access to test for ok instead of forbidden
This commit is contained in:
parent
d3ba80c84e
commit
78ef3141c6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue