Sha256: f584c2a574e75cdf784d8f7edffb3479b13f976b55599719c46d9e9ad0773a4b

Contents?: true

Size: 543 Bytes

Versions: 3

Compression:

Stored size: 543 Bytes

Contents

require 'spec_helper'
require 'wgif/cli'

describe 'frame order bug', regression: true do
  it 'does not create frames out of order' do
    args =  ['https://www.youtube.com/watch?v=piWCBOsJr-w',
             'banana-shoot.gif',
             '-s',
             '2:22',
             '-d',
             '17',
             '-f',
             '170']
    WGif::CLI.new.make_gif(args)
    frames = Dir.entries('/tmp/wgif/frames')
    filenames = (1..170).map { |n| sprintf '%05d.png', n }
    expect(frames).to eq(['.', '..'] + filenames)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wgif-0.5.4 spec/regression/frame_order_spec.rb
wgif-0.5.3 spec/regression/frame_order_spec.rb
wgif-0.5.2 spec/regression/frame_order_spec.rb