From 54c10a0576192f525d5eeb2ff80e81143f912255 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Tue, 9 May 2017 22:21:19 +0200 Subject: [PATCH] Improve code formatting in specs for Rackstash::Flows --- spec/rackstash/flows_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/rackstash/flows_spec.rb b/spec/rackstash/flows_spec.rb index 93c1089..db8593d 100644 --- a/spec/rackstash/flows_spec.rb +++ b/spec/rackstash/flows_spec.rb @@ -24,12 +24,12 @@ describe Rackstash::Flows do end it 'accepts a list of flows' do - flows = 3.times.map { a_flow } + raw_flows = Array.new(3) { a_flow } - list_with_array = Rackstash::Flows.new(flows) + list_with_array = Rackstash::Flows.new(raw_flows) expect(list_with_array.size).to eql 3 - list_with_splat = Rackstash::Flows.new(*flows) + list_with_splat = Rackstash::Flows.new(*raw_flows) expect(list_with_splat.size).to eql 3 end end @@ -163,12 +163,12 @@ describe Rackstash::Flows do describe '#length' do it 'returns the number of flows' do - expect { flows << a_flow} + expect { flows << a_flow } .to change { flows.length }.from(0).to(1) end it 'can use size alias' do - expect { flows << a_flow} + expect { flows << a_flow } .to change { flows.size }.from(0).to(1) end end