From 3360356e4994c89809cff1b6fb2beeccd14339d8 Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Sun, 19 Jan 2014 17:58:02 +0000 Subject: [PATCH] Simplify Env spec: * Remove #ouput examples; * Use described_class where useful. --- spec/producer/core/env_spec.rb | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/spec/producer/core/env_spec.rb b/spec/producer/core/env_spec.rb index c5df8ce..37d2384 100644 --- a/spec/producer/core/env_spec.rb +++ b/spec/producer/core/env_spec.rb @@ -2,7 +2,6 @@ require 'spec_helper' module Producer::Core describe Env do - let(:output) { double 'output' } subject(:env) { Env.new } describe '#initialize' do @@ -15,7 +14,8 @@ module Producer::Core end context 'when output is given as argument' do - subject(:env) { Env.new(output: output) } + let(:output) { double 'output' } + subject(:env) { described_class.new(output: output) } it 'assigns the given output' do expect(env.output).to eq output @@ -23,14 +23,6 @@ module Producer::Core end end - describe '#output' do - subject(:env) { Env.new(output: output) } - - it 'returns the assigned output' do - expect(env.output).to eq output - end - end - describe '#target' do let(:target) { double 'target' }