Sha256: 2d632e069cf10a24c7664ce3961f8cd64d380e5fa5a46cdced48734fd1ea6a91

Contents?: true

Size: 300 Bytes

Versions: 2

Compression:

Stored size: 300 Bytes

Contents

require_relative '../lib/rationalist'
require 'minitest/autorun'
require 'minitest/expectations'

describe 'parse modified' do
  it 'parse with modifier functions' do
    argv = Rationalist.parse([ '-b', '123' ], { boolean: 'b' })

    argv.must_equal({
      b: true,
      _: [123]
    })
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rationalist-2.0.1 spec/parse_modified_spec.rb
rationalist-2.0.0 spec/parse_modified_spec.rb