Skip to content

Commit

Permalink
#98 extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 24, 2020
1 parent 7f54ae2 commit b7e7429
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_codexia.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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-')
Expand Down

0 comments on commit b7e7429

Please sign in to comment.