From 059b586c373899cfb3fdb4cdf7d943ad9e25fcbb Mon Sep 17 00:00:00 2001 From: Andy Liu Date: Mon, 4 Nov 2024 15:46:04 -0500 Subject: [PATCH] rename constant --- test/webhooks/registry_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/webhooks/registry_test.rb b/test/webhooks/registry_test.rb index 6090e2051..3f62444c4 100644 --- a/test/webhooks/registry_test.rb +++ b/test/webhooks/registry_test.rb @@ -32,13 +32,13 @@ def setup @url = "#{ShopifyAPI::Context.host}/admin/api/#{ShopifyAPI::Context.api_version}/graphql.json" end - DEFAULT_PROTOCOL_ADDRESSES = { + VALID_PROTOCOL_ADDRESSES = { http: ["test-webhooks", "https://app-address.com/test-webhooks", "app-address.com/test-webhooks"], pub_sub: ["pubsub://my-project-id:my-topic-id"], event_bridge: ["test-webhooks"], } - DEFAULT_PROTOCOL_ADDRESSES.each do |protocol, addresses| + VALID_PROTOCOL_ADDRESSES.each do |protocol, addresses| addresses.each do |address| define_method("test_add_#{protocol}_registration_if_identical_webhook_exists_on_#{address}") do do_no_registration_needed_test(