diff --git a/test/test_assemblyai.rb b/test/test_assemblyai.rb index b3827e2..248c946 100644 --- a/test/test_assemblyai.rb +++ b/test/test_assemblyai.rb @@ -13,7 +13,7 @@ def api_key # @return [String] AssemblyAI Base URL def base_url - ENV.fetch("ASSEMBLYAI_BASE_URL") || AssemblyAI::Environment::DEFAULT + ENV.key?("ASSEMBLYAI_BASE_URL") ? ENV.fetch("ASSEMBLYAI_BASE_URL") : AssemblyAI::Environment::DEFAULT end def client