Sha256: 870cc533624472e0f5413c76c27b710def0ef9c24963462d46799b940dc9b456

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

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

describe 'all bools' do
  it 'flag boolean true (default all --args to boolean)' do
    argv = Rationalist.parse(['moo', '--honk', 'cow'], {
      boolean: true
    })

    argv.must_equal({
      honk: true,
      _: ['moo', 'cow']
    })
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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