From 130d84aa6ca716b444c0f50346c18d46c6c22f7f Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Thu, 23 Jan 2014 18:22:21 +0000 Subject: [PATCH] Simplify Action#output spec --- spec/producer/core/action_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/producer/core/action_spec.rb b/spec/producer/core/action_spec.rb index 7ac25bf..fbe780b 100644 --- a/spec/producer/core/action_spec.rb +++ b/spec/producer/core/action_spec.rb @@ -27,9 +27,8 @@ module Producer::Core end describe '#output' do - it 'delegates to env output' do - action.output.puts 'some content' - expect(output.string).to eq "some content\n" + it 'returns env output' do + expect(action.output).to be output end end