Sha256: 82540809c66c967059027a0b306199fc7722a1faf98ffa14051a5257ff22d686
Contents?: true
Size: 479 Bytes
Versions: 4
Compression:
Stored size: 479 Bytes
Contents
require 'rspectacular' require 'ruby-progressbar/calculators/running_average' class ProgressBar module Calculators RSpec.describe Length do it 'can properly calculate the length even if IO.console is nil' do calculator = Length.new expect(IO).to receive(:console).and_return nil expect(calculator).to receive(:dynamic_width_via_system_calls).and_return 123_456 expect(calculator.calculate_length).to eql 123_456 end end end end
Version data entries
4 entries across 4 versions & 3 rubygems