Skip to content

Commit

Permalink
Added test for missing params
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jun 16, 2024
1 parent 30a6da3 commit d0cb041
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/api_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ def test_max_content_length
end
end

def test_missing_params
post ahoy_engine.events_url
assert_response :bad_request
assert_equal "Missing required parameters\n", response.body
end

def random_visit(started_at: nil)
Ahoy::Visit.create!(
visit_token: random_token,
Expand Down

0 comments on commit d0cb041

Please sign in to comment.