Sha256: d1e02e136852afa6685397ac1cea9bcf259a022f3ae9d25fa2e599ed68d25d80
Contents?: true
Size: 865 Bytes
Versions: 6
Compression:
Stored size: 865 Bytes
Contents
require 'spec_helper' describe TranscodeVideoJob do before do @generic_file = GenericFile.new @generic_file.apply_depositor_metadata('jcoyne@example.com') @generic_file.add_file_datastream(File.new(fixture_path + '/countdown.avi'), :dsid=>'content') @generic_file.save! end after do @generic_file.delete end subject { TranscodeVideoJob.new(@generic_file.id, 'content')} it "should put content in datastream_out" do subject.run reloaded = GenericFile.find(@generic_file.pid) derivative = reloaded.datastreams['webm'] derivative.should_not be_nil derivative.content.should_not be_nil derivative.mimeType.should == 'video/webm' derivative2 = reloaded.datastreams['mp4'] derivative2.should_not be_nil derivative2.content.should_not be_nil derivative2.mimeType.should == 'video/mp4' end end
Version data entries
6 entries across 6 versions & 1 rubygems