Sha256: 2757ecb90e55c76e8f857e3c224cc48cc5be6f55eb11a929dbef004b5820c36b
Contents?: true
Size: 435 Bytes
Versions: 2
Compression:
Stored size: 435 Bytes
Contents
require 'spec_helper' require 'observed/task' describe Observed::TaskFactory do context 'when the executor not given' do it 'fails to initialize' do expect { Observed::TaskFactory.new() }.to raise_error end end context 'when a logger given' do it 'may prefer the given logger over the default one' do Observed::TaskFactory.new(executor: mock('executor'), logger: ::Logger.new(STDERR)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
observed-0.2.0 | spec/task_factory_spec.rb |
observed-0.2.0.rc2 | spec/task_factory_spec.rb |