Sha256: 24b302f22a87b93743f811f9b21f2613cebe790d63e1147f00e43dc3cc925be0
Contents?: true
Size: 844 Bytes
Versions: 1
Compression:
Stored size: 844 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe FitsDatastream, :unless => $in_travis do before(:all) do @file = GenericFile.new @file.add_file_datastream(File.new(fixture_path + '/world.png'), :dsid=>'content') @file.characterize end it "should have a format label" do @file.format_label.should == ["Portable Network Graphics"] end it "should have a mime type" do @file.mime_type.should == "image/png" end it "should have a file size" do @file.file_size.should == ["4218"] end it "should have a last modified timestamp" do @file.last_modified.should_not be_empty end it "should have a filename" do @file.filename.should_not be_empty end it "should have a checksum" do @file.original_checksum.should == ["28da6259ae5707c68708192a40b3e85c"] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sufia-3.0.0 | spec/models/fits_datastream_spec.rb |