Refactor interpreter spec
This commit is contained in:
parent
856e78245f
commit
a555df40c6
@ -13,11 +13,7 @@ module Producer::Core
|
|||||||
|
|
||||||
describe '#process_task' do
|
describe '#process_task' do
|
||||||
let(:action) { double('action') }
|
let(:action) { double('action') }
|
||||||
let(:task) { double('task').as_null_object }
|
let(:task) { double('task', actions: [action]).as_null_object }
|
||||||
|
|
||||||
before do
|
|
||||||
allow(task).to receive(:actions) { [action] }
|
|
||||||
end
|
|
||||||
|
|
||||||
context 'when task condition is met' do
|
context 'when task condition is met' do
|
||||||
it 'applies the actions' do
|
it 'applies the actions' do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user