diff --git a/test/test_codexia.rb b/test/test_codexia.rb index f9a0633..f6afc48 100644 --- a/test/test_codexia.rb +++ b/test/test_codexia.rb @@ -81,6 +81,11 @@ def test_200_user_pages end end + def test_submits_wrong_coordinates + post(Iri.new('/submit').add(platform: 'github', coordinates: '-').to_s, nil, 'HTTP_X_CODEXIA_TOKEN' => '-test-') + assert_equal(303, last_response.status, "#{p} fails: #{last_response.body}") + end + def test_api_fetch_json id = post_project('tt/ttt') post("/p/#{id}/post?text=hello", nil, 'HTTP_X_CODEXIA_TOKEN' => '-test-')