mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01: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
|
assert_response 401
|
||||||
end
|
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
|
login_as nil
|
||||||
get :index, params: { :format => "xml", :token => users(:admin_user).token }
|
get :index, params: { :format => "xml", :token => users(:admin_user).token }
|
||||||
assert_response 401
|
assert_response :ok
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue