diff --git a/test/api_test.rb b/test/api_test.rb index 1f0697cf..678f3ea8 100644 --- a/test/api_test.rb +++ b/test/api_test.rb @@ -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,