test/lib/vedeu/terminal/buffer_test.rb in vedeu-0.6.20 vs test/lib/vedeu/terminal/buffer_test.rb in vedeu-0.6.21

- old
+ new

@@ -9,18 +9,19 @@ let(:described) { Vedeu::Terminal::Buffer } let(:height) { 2 } let(:width) { 3 } before do + Vedeu.stubs(:ready?).returns(true) Vedeu.stubs(:height).returns(height) Vedeu.stubs(:width).returns(width) Vedeu::Terminal::Buffer.reset end describe '#buffer' do let(:expected) { - Array.new(height) do |y| - Array.new(width) do |x| + Array.new(Vedeu.height) do |y| + Array.new(Vedeu.width) do |x| Vedeu::Models::Cell.new(position: [y + 1, x + 1]) end end }