Skip to content

Commit

Permalink
rename test again
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-liuu committed Nov 4, 2024
1 parent c5919e2 commit 1fd2e90
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/webhooks/registry_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def setup

VALID_PROTOCOL_ADDRESSES.each do |protocol, addresses|
addresses.each do |address|
define_method("test_#{protocol}_no_registration_if_identical_webhook_exists_using_#{address}") do
define_method("test_#{protocol}_no_registration_if_identical_webhook_exists_on_#{address}") do
# Given
ShopifyAPI::Webhooks::Registry.clear

Expand All @@ -60,7 +60,7 @@ def setup
assert_nil(update_registration_response.body)
end

define_method("test_#{protocol}_registration_add_and_update_using_#{address}") do
define_method("test_#{protocol}_registration_add_and_update_on_#{address}") do
do_registration_test(
queries[protocol][:check_empty_response],
queries[protocol][:register_add_query],
Expand All @@ -70,7 +70,7 @@ def setup
)
end

define_method("test_#{protocol}_registration_with_fields_add_and_update_using_#{address}") do
define_method("test_#{protocol}_registration_with_fields_add_and_update_on_#{address}") do
# add webhook
do_registration_test(
queries[protocol][:check_empty_response],
Expand All @@ -92,7 +92,7 @@ def setup
)
end

define_method("test_#{protocol}_registration_with_fields_array_add_and_update_using_#{address}") do
define_method("test_#{protocol}_registration_with_fields_array_add_and_update_on_#{address}") do
# add webhook
do_registration_test(
queries[protocol][:check_empty_response],
Expand All @@ -114,7 +114,7 @@ def setup
)
end

define_method("test_#{protocol}_registration_with_metafield_namespaces_add_and_update_using_#{address}") do
define_method("test_#{protocol}_registration_with_metafield_namespaces_add_and_update_on_#{address}") do
# add webhook
do_registration_test(
queries[protocol][:check_empty_response],
Expand Down

0 comments on commit 1fd2e90

Please sign in to comment.