From a555df40c6055f38e8a3e761a9ada342b2c88003 Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Thu, 22 Aug 2013 00:22:16 +0000 Subject: [PATCH] Refactor interpreter spec --- spec/producer/core/interpreter_spec.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/spec/producer/core/interpreter_spec.rb b/spec/producer/core/interpreter_spec.rb index d668568..f6c78d4 100644 --- a/spec/producer/core/interpreter_spec.rb +++ b/spec/producer/core/interpreter_spec.rb @@ -13,11 +13,7 @@ module Producer::Core describe '#process_task' do let(:action) { double('action') } - let(:task) { double('task').as_null_object } - - before do - allow(task).to receive(:actions) { [action] } - end + let(:task) { double('task', actions: [action]).as_null_object } context 'when task condition is met' do it 'applies the actions' do