You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/spec/services/timing_parser_spec.rb

13 lines
254 B
Ruby

require 'rails_helper'
describe TimingParser do
describe '.parse' do
it 'returns array of arrays[delay, size]' do
timing = TimingParser.parse("1.234 30\n56.55 100")
expect(timing).to eq([[1.234, 30], [56.55, 100]])
end
end
end