From b7e7429429921b056a2d28f742d89c7a29fc1a68 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Tue, 24 Mar 2020 22:41:45 +0300 Subject: [PATCH] #98 extra test --- test/test_codexia.rb | 5 +++++ 1 file changed, 5 insertions(+) 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-')