Sha256: 636d2b4cc49e90c2fd7d048c19427a3827ff8f30577139328a3b9799defc5da0

Contents?: true

Size: 543 Bytes

Versions: 1

Compression:

Stored size: 543 Bytes

Contents

require 'spec_helper'
require 'wgif/cli'

describe 'frame order bug', integration: 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

1 entries across 1 versions & 1 rubygems

Version Path
wgif-0.3.1 spec/regression/frame_order_spec.rb