From 8bf026304644ec2c76120b56077aa67f5afe9b77 Mon Sep 17 00:00:00 2001 From: Phillip Davis Date: Mon, 30 Mar 2026 15:45:00 -0400 Subject: [PATCH] refactor: extract BW_MESSAGES_URL into test_helper --- test/property/test_badwords.rb | 3 --- test/property/test_invisible_separator.rb | 3 --- test/property/test_non_nanp_oob.rb | 3 --- test/test_helper.rb | 1 + 4 files changed, 1 insertion(+), 9 deletions(-) diff --git a/test/property/test_badwords.rb b/test/property/test_badwords.rb index be9cf6542d26d90dd85315498311d22ec28a24a9..f0206817c02002d87e7dd2fac0fe431e94cf0d59 100644 --- a/test/property/test_badwords.rb +++ b/test/property/test_badwords.rb @@ -6,9 +6,6 @@ require "rantly/minitest_extensions" require_relative "rantly_extensions/data_extensions" class BadwordsPropertyTest < Minitest::Test - BW_MESSAGES_URL = - "https://messaging.bandwidth.com/api/v2/users/account/messages" - def setup reset_stanzas! reset_redis! diff --git a/test/property/test_invisible_separator.rb b/test/property/test_invisible_separator.rb index aad1f729859f2cdad2355bc6d1f644574f01017b..562b4c45959ace89cb145427ed91fd05eea57ee1 100644 --- a/test/property/test_invisible_separator.rb +++ b/test/property/test_invisible_separator.rb @@ -6,9 +6,6 @@ require "rantly/minitest_extensions" require_relative "rantly_extensions/data_extensions" class InvisibleSeparatorPropertyTest < Minitest::Test - BW_MESSAGES_URL = - "https://messaging.bandwidth.com/api/v2/users/account/messages" - def setup reset_stanzas! reset_redis! diff --git a/test/property/test_non_nanp_oob.rb b/test/property/test_non_nanp_oob.rb index 26ba66f7181a5a67933e187c628d74545a23afed..f67273be5780d2fdf7cd36f26e7d775b60fb2137 100644 --- a/test/property/test_non_nanp_oob.rb +++ b/test/property/test_non_nanp_oob.rb @@ -6,9 +6,6 @@ require "rantly/minitest_extensions" require_relative "rantly_extensions/data_extensions" class NonNanpOobPropertyTest < Minitest::Test - BW_MESSAGES_URL = - "https://messaging.bandwidth.com/api/v2/users/account/messages" - def build_oob_message(dest, body, oob_url) m = Blather::Stanza::Message.new("#{dest}@component", body) m.from = "test@example.com/res" diff --git a/test/test_helper.rb b/test/test_helper.rb index 6bdb8c7095bb1bd47dd47fc8d252c84b21f92503..229538b287aa87ea0a34568a1760977ea2638a09 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -11,6 +11,7 @@ require "minitest/autorun" require "webmock/minitest" MMS_PROXY = "https://proxy.test.example.com/" +BW_MESSAGES_URL = "https://messaging.bandwidth.com/api/v2/users/account/messages" _saved_argv = ARGV.dup