Skip to content

Commit

Permalink
make test names shorter for rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-liuu committed Nov 4, 2024
1 parent 059b586 commit cf49964
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_add_#{protocol}_registration_if_identical_webhook_exists_on_#{address}") do
define_method("test_add_#{protocol}_registration_if_identical_webhook_exists_using_#{address}") do
do_no_registration_needed_test(
queries[protocol][:check_existing_response],
protocol,
Expand All @@ -56,7 +56,7 @@ def setup
)
end

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

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

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

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

0 comments on commit cf49964

Please sign in to comment.