test/test_argument_validator.rb in npsearch-2.1.2 vs test/test_argument_validator.rb in npsearch-2.1.3
- old
+ new
@@ -1,13 +1,14 @@
require_relative 'test_helper'
-
+require 'npsearch'
require 'npsearch/arg_validator'
# Class to test the how well the CLI arguments are validated.
class TestInputArgumentValidator < Minitest::Test
def setup
+ NpSearch.logger = Logger.new(STDOUT, true)
@c = NpSearch::ArgumentsValidators
- @opt = { num_threads: 1, min_orf_length: 30 }
+ @opt = { num_threads: 1, min_orf_length: 30, debug: true }
end
def test_assert_file_present
@c.send(:assert_file_present, 'existing file',
'test/files/genetic.fa', 1)