Skip to content

Commit f4fbd6e

Browse files
committed
Extract TESTENV constant
1 parent fc12824 commit f4fbd6e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test_helper.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
$LOAD_PATH << __dir__ unless $LOAD_PATH.include?(__dir__)
55
$LOAD_PATH << __lib__ unless $LOAD_PATH.include?(__lib__)
66

7+
TESTENV = ENV.fetch('TESTENV', "apacheds")
8+
79
require 'pathname'
810
FIXTURES = Pathname(File.expand_path('fixtures', __dir__))
911

@@ -12,7 +14,7 @@
1214

1315
require 'minitest/autorun'
1416

15-
if ENV.fetch('TESTENV', "apacheds") == "apacheds"
17+
if TESTENV == "apacheds"
1618
# Make sure we clean up running test server
1719
# NOTE: We need to do this manually since its internal `at_exit` hook
1820
# collides with Minitest's autorun at_exit handling, hence this hook.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy