Sha256: e40a3dd0320c1510210d5f3b740d142d27957078fd291caef2514795899891ee

Contents?: true

Size: 654 Bytes

Versions: 2

Compression:

Stored size: 654 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Ffprober do

  describe 'if no ffprobe is found' do
    it 'should raise a exception if there is no ffmpeg' do
      allow(Ffprober).to receive(:path).and_return('nonexistant')

      expect do
        Ffprober::Parser.from_file('spec/assets/301-extracting_a_ruby_gem.m4v')
      end.to raise_error
    end

    it 'should raise a exception if there is no valid ffmpeg' do
      allow(Ffprober::FfprobeVersion).to receive(:valid?).and_return(false)

      expect do
        Ffprober::Parser.from_file('spec/assets/301-extracting_a_ruby_gem.m4v')
      end.to raise_error(ArgumentError)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffprober-0.4.1 spec/ffprober_spec.rb
ffprober-0.4.0 spec/ffprober_spec.rb