Skip to content

Commit

Permalink
Make DefaultArgs definition atomic and freeze its values
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokaro committed Aug 4, 2024
1 parent da4a354 commit cfb6d22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_ocra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
class TestOcran < Minitest::Test

# Default arguments for invoking OCRAN when running tests.
DefaultArgs = [ '--no-lzma', '--verbose' ]
DefaultArgs << "--quiet" unless ENV["OCRAN_VERBOSE_TEST"]
DefaultArgs = %w[--no-lzma --verbose].tap do |ary|
ary << "--quiet" unless ENV["OCRAN_VERBOSE_TEST"]
end.freeze

# Name of the tested ocran script.
TESTED_OCRAN = ENV['TESTED_OCRAN'] || 'ocran'
Expand Down

0 comments on commit cfb6d22

Please sign in to comment.