Sha256: 5d57bdae9ca1d015c65191180c383b1a37c1ccf4ca365a918c8f220843a4aa87
Contents?: true
Size: 697 Bytes
Versions: 2
Compression:
Stored size: 697 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Processor::Executor, '#compose' do let(:input) { double('input') } let(:output) { double('output') } describe '#compose' do subject { executor.compose(input, output) } include_context 'Processor::Executor#initialize' before do expect(composer).to receive(:call).with(input, output).and_return(composed) end it { should be(composed) } end describe '#decompose' do subject { executor.decompose(input) } include_context 'Processor::Executor#initialize' before do expect(decomposer).to receive(:call).with(input).and_return(decomposed) end it { should be(decomposed) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
substation-0.0.11 | spec/unit/substation/processor/executor_spec.rb |
substation-0.0.10 | spec/unit/substation/processor/executor_spec.rb |