Sha256: b6d48b576325d86a017b59f1eb29f02383ee7d3d88903a71de7f0aae3c68edf8
Contents?: true
Size: 1013 Bytes
Versions: 1
Compression:
Stored size: 1013 Bytes
Contents
require_relative '../../test_helper' module Vedeu describe Configuration do let(:described_class) { Configuration } let(:described_instance) { described_class.new(args) } let(:args) { [] } let(:subject) { described_instance } it 'returns a Configuration instance' do subject.must_be_instance_of(Configuration) end it 'sets an instance variable' do subject.instance_variable_get('@args').must_equal([]) end it 'sets an instance variable' do subject.instance_variable_get('@options').must_equal({}) end describe '#configure' do let(:subject) { described_class.configure(args) } it 'returns a Hash' do subject.must_be_instance_of(Hash) end context 'when the option is --run-once' do let(:args) { ['--run-once'] } it 'returns the options which instructs Vedeu to run once' do subject.must_equal({ interactive: false }) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.25 | test/lib/vedeu/configuration_test.rb |