Sha256: 65457bca199f017ad7d2cd9e96e46986863128c17702a1990aa889f4c61249c2
Contents?: true
Size: 754 Bytes
Versions: 2
Compression:
Stored size: 754 Bytes
Contents
require 'test_helper' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.1.12 | test/lib/vedeu/configuration_test.rb |
vedeu-0.1.10 | test/lib/vedeu/configuration_test.rb |