Sha256: 07125f7ee5e403fd5f3853a02b5e51577b5394d1dbaf21e27ed4fa782a718ba4
Contents?: true
Size: 930 Bytes
Versions: 5
Compression:
Stored size: 930 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 it 'returns the options which instructs Vedeu to run with debugging on' do Configuration.configure(['--debug']) .must_equal({ debug: true }) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems