spec/mxfinfo_spec.rb in mxfinfo-0.0.1 vs spec/mxfinfo_spec.rb in mxfinfo-0.0.2
- old
+ new
@@ -25,9 +25,18 @@
it "should return nil if file doesn't exist" do
MXFinfo.scan("imagenary File").should == nil
end
+ #it "should work with whitespace filenames" do
+ # MXFinfo.scan(name_to_fixture "Shellescape Test.mxf").should_not == nil
+ #end
+
+ it "should redirect stderr to stdout and return if ERROR is included" do
+ info = MXFinfo.scan(name_to_fixture "InvalidFileTest.mxf")
+ info.should == nil
+ end
+
it "should be possible to access raw data" do
info = MXFinfo.scan(name_to_fixture "IMG_0395.MOV.A14DC7130D.mxf")
info.nil?.should == false
infoFile = File.open(name_to_fixture "IMG_0395.MOV.A14DC7130D.mxf.info")
info.raw_data.should eql infoFile.read
\ No newline at end of file