From 4857c9ad1e172049416f7bb57b2e8951df975d95 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Fri, 14 Mar 2025 20:13:05 +0300 Subject: [PATCH] Test end states of api changeset subscriptions --- .../api/changeset_subscriptions_controller_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/controllers/api/changeset_subscriptions_controller_test.rb b/test/controllers/api/changeset_subscriptions_controller_test.rb index e0d4ca669..bf3588f23 100644 --- a/test/controllers/api/changeset_subscriptions_controller_test.rb +++ b/test/controllers/api/changeset_subscriptions_controller_test.rb @@ -76,6 +76,7 @@ module Api assert_response :conflict end end + assert_includes changeset.subscribers, user end def test_create_on_open_changeset @@ -90,6 +91,7 @@ module Api assert_response :success end end + assert_includes changeset.subscribers, user end def test_create_on_closed_changeset @@ -104,6 +106,7 @@ module Api assert_response :success end end + assert_includes changeset.subscribers, user end def test_create_legacy @@ -118,6 +121,7 @@ module Api assert_response :success end end + assert_includes changeset.subscribers, user end def test_destroy_by_unauthorized @@ -155,6 +159,7 @@ module Api assert_response :not_found end end + assert_not_includes changeset.subscribers, user end def test_destroy_on_open_changeset @@ -170,6 +175,7 @@ module Api assert_response :success end end + assert_not_includes changeset.subscribers, user end def test_destroy_on_closed_changeset @@ -185,6 +191,7 @@ module Api assert_response :success end end + assert_not_includes changeset.subscribers, user end def test_destroy_legacy @@ -200,6 +207,7 @@ module Api assert_response :success end end + assert_not_includes changeset.subscribers, user end end end -- 2.39.5