Sha256: fb394668a54bc2cf9658a644e6c1285c750e10a30719545d6d9e44c3f26f6381
Contents?: true
Size: 660 Bytes
Versions: 2
Compression:
Stored size: 660 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 Ffprober.stub(:path).and_return("nonexistant") expect { @ffprobe = Ffprober::Parser.from_file('spec/assets/301-extracting_a_ruby_gem.m4v') }.to raise_error(Errno::ENOENT) end it "should raise a exception if there is no valid ffmpeg" do Ffprober::FfprobeVersion.stub(:valid?).and_return(false) expect { @ffprobe = Ffprober::Parser.from_file('spec/assets/301-extracting_a_ruby_gem.m4v') }.to raise_error(ArgumentError) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffprober-0.3.2 | spec/ffprober_spec.rb |
ffprober-0.3.1 | spec/ffprober_spec.rb |