refactor: extract BW_MESSAGES_URL into test_helper

Phillip Davis created

Change summary

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(-)

Detailed changes

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!

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!

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"

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