spec/rake/funnel/execution_error_spec.rb in rake-funnel-0.18.0 vs spec/rake/funnel/execution_error_spec.rb in rake-funnel-0.19.0

- old
+ new

@@ -36,18 +36,18 @@ its(:to_s) { should =~ /^Command output \(last 10 lines\):\noutput/ } end context 'longer than 10 lines' do - let(:output) { + let(:output) do output = [] 11.times.each do |i| output << "output #{i}" end output.join("\n") - } + end subject { described_class.new(nil, nil, output) } it 'should display the last 10 lines of output' do expect(subject.to_s).not_to match(/^output 0/)