rate_center -> :city

Phillip Davis created

Change summary

lib/bandwidth_tn_repo.rb   | 2 +-
test/test_admin_command.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Detailed changes

lib/bandwidth_tn_repo.rb 🔗

@@ -49,7 +49,7 @@ class BandwidthTnRepo
 	def stash_for_later(tel, btn)
 		details = btn.get_rate_center
 		region = details[:state]
-		locality = details[:rate_center]
+		locality = details[:city]
 		params = [tel, region, locality, CONFIG[:creds][:account]]
 		DB.exec(STASH_QUERY, params)
 	end

test/test_admin_command.rb 🔗

@@ -294,7 +294,7 @@ class AdminCommandTest < Minitest::Test
 
 		sgx, admin = admin_command("+15566667777")
 
-		sql_params = ["+15566667777", "NY", "NWYRCYZN01", "test_bw_account"]
+		sql_params = ["+15566667777", "NY", "MANHATTAN", "test_bw_account"]
 
 		BandwidthTnRepo::DB.expect(
 			:exec,