Sha256: ceca7a67dbef8873114a564812461030fb507f35ff054199d4fd50970b0c7cef
Contents?: true
Size: 375 Bytes
Versions: 2
Compression:
Stored size: 375 Bytes
Contents
require_relative '../lib/rationalist' require 'minitest/autorun' require 'minitest/expectations' describe 'stop early' do it 'stops parsing on the first non-option when stopEarly is set' do argv = Rationalist.parse( ['--aaa', 'bbb', 'ccc', '--ddd'], stop_early: true, ) argv.must_equal( aaa: 'bbb', _: ['ccc', '--ddd'], ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rationalist-2.0.1 | spec/stop_early_spec.rb |
rationalist-2.0.0 | spec/stop_early_spec.rb |