fix: make sure ARGV[0] is set for all tests

Phillip Davis created

Change summary

test/test_component.rb | 1 +
test/test_helper.rb    | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)

Detailed changes

test/test_component.rb 🔗

@@ -9,6 +9,7 @@ end
 
 class ComponentTest < Minitest::Test
 	def setup
+		ARGV[0] = 'component'
 		SGXbwmsgsv2.instance_variable_set(:@written, [])
 
 		def SGXbwmsgsv2.write_to_stream(s)

test/test_helper.rb 🔗

@@ -32,7 +32,6 @@ rescue LoadError, NameError
 end
 
 $VERBOSE = nil
-ARGV[0] = "component"
 
 class FakeRedis
 	def initialize(values={})