From d0cb0417f2341a3f64c4614a4a8771d85389d3d0 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 16 Jun 2024 16:55:10 -0700 Subject: [PATCH] Added test for missing params --- test/api_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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,