Sha256: c56e3872325bb37a14260fae477da122da0083e10c884f9548e66d5e75b1de3b
Contents?: true
Size: 967 Bytes
Versions: 4
Compression:
Stored size: 967 Bytes
Contents
require 'spec_helper' describe 'MXFInfo' do describe 'scan' do context 'given an invalid MXF file' do it 'should raise an error' do expect { MXFInfo.scan File.expand_path('../fixtures/InvalidFileTest.mxf', __FILE__) }.to raise_error(/Failed to read header partition/) end end context 'given an invalid MXF file' do it 'should raise not an error' do expect { MXFInfo.scan File.expand_path('../fixtures/IMG_0395.MOV.A14DC7130D.mxf', __FILE__) }.to_not raise_error end it 'should return an InfoObject instance' do expect(MXFInfo.scan File.expand_path('../fixtures/IMG_0395.MOV.A14DC7130D.mxf', __FILE__)).to be_a(MXFInfo::InfoObject) end it 'should return an UTF-8 clip_name' do expect(MXFInfo.scan(File.expand_path('../fixtures/IMG_0395.MOV.A14DC7130D.mxf', __FILE__)).clip_name.encoding).to eq(Encoding::UTF_8) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mxfinfo-0.2.2 | spec/mxfinfo_spec.rb |
mxfinfo-0.2.1 | spec/mxfinfo_spec.rb |
mxfinfo-0.2.0 | spec/mxfinfo_spec.rb |
mxfinfo-0.1.3 | spec/mxfinfo_spec.rb |