asciinema.org/spec/models/stdout_spec.rb

19 lines
491 B
Ruby
Raw Normal View History

# encoding: utf-8
2014-08-30 17:38:47 +00:00
require 'rails_helper'
describe Stdout do
let(:stdout) { Stdout.new('spec/fixtures/stdout.decompressed',
'spec/fixtures/stdout.time.decompressed') }
describe '#each' do
2013-08-13 17:27:02 +00:00
it 'yields for each frame with delay and data' do
expect { |b| stdout.each(&b) }.
to yield_successive_args([0.5, 'foobar'],
[1.0, "bazqux\xC5"],
[2.0, "\xBCółć"])
end
end
end