Skip to content

Commit

Permalink
rename constant
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-liuu committed Nov 4, 2024
1 parent 072e46a commit 059b586
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/webhooks/registry_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 059b586

Please sign in to comment.