Sha256: 0168e4e255a334ebe600d9a58d0949fcd89c4efaaf2cdf2f869eebe8b4b9079a

Contents?: true

Size: 426 Bytes

Versions: 11

Compression:

Stored size: 426 Bytes

Contents

require 'spec_helper'
require 'wgif/video_cache'

describe WGif::VideoCache do

  let(:cache) { described_class.new }

  it 'checks for existing video files in /tmp' do
    pathname = double(Pathname)
    expect(Pathname).to receive(:new).and_return(pathname)
    expect(pathname).to receive(:exist?).and_return(true)
    expect(WGif::Video).to receive(:new).with('video', '/tmp/wgif/video')
    cache.get('video')
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wgif-0.5.4 spec/unit/wgif/video_cache_spec.rb
wgif-0.5.3 spec/unit/wgif/video_cache_spec.rb
wgif-0.5.2 spec/unit/wgif/video_cache_spec.rb
wgif-0.5.1 spec/unit/wgif/video_cache_spec.rb
wgif-0.5.0 spec/unit/wgif/video_cache_spec.rb
wgif-0.4.0 spec/unit/wgif/video_cache_spec.rb
wgif-0.3.1 spec/unit/wgif/video_cache_spec.rb
wgif-0.3.0 spec/unit/wgif/video_cache_spec.rb
wgif-0.2.0 spec/wgif/video_cache_spec.rb
wgif-0.0.1 spec/wgif/video_cache_spec.rb
wgif-0.0.1.pre spec/wgif/video_cache_spec.rb