Sha256: 6b3f54427b3ee08210731f31e61c7a13a13e5aa8d0aa88c682fe8f77fc8ab397
Contents?: true
Size: 821 Bytes
Versions: 3
Compression:
Stored size: 821 Bytes
Contents
require_relative '../../test_helper' require_relative '../../../lib/vedeu/configuration' module Vedeu describe Configuration do describe '#configure' do it 'returns an empty collection when no options are set' do Configuration.configure([]).must_equal({}) end it 'returns the options which instructs Vedeu to run once' do Configuration.configure(['--run-once']) .must_equal({ interactive: false }) end it 'returns the options which instructs Vedeu to run in cooked mode' do Configuration.configure(['--cooked']) .must_equal({ mode: :cooked }) end it 'returns the options which instructs Vedeu to run in raw mode' do Configuration.configure(['--raw']) .must_equal({ mode: :raw }) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.39 | test/lib/vedeu/configuration_test.rb |
vedeu-0.0.38 | test/lib/vedeu/configuration_test.rb |
vedeu-0.0.37 | test/lib/vedeu/configuration_test.rb |