Sha256: e7bc91ead3aace9753b5ae419a4ba8d5cec489290cd041025ece5be400b54789
Contents?: true
Size: 650 Bytes
Versions: 1
Compression:
Stored size: 650 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 { Ffprober::Parser.from_file('spec/assets/301-extracting_a_ruby_gem.m4v') }.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 { Ffprober::Parser.from_file('spec/assets/301-extracting_a_ruby_gem.m4v') }.to raise_error(ArgumentError) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffprober-0.3.7 | spec/ffprober_spec.rb |