Sha256: a4198ffa0241bd729cad90e89c66babf250280574894b17353e85b0cd13f1782
Contents?: true
Size: 729 Bytes
Versions: 12
Compression:
Stored size: 729 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe FileAsset do before(:each) do @file_asset = FileAsset.new @file_asset.stubs(:create_date).returns("2008-07-02T05:09:42.015Z") @file_asset.stubs(:modified_date).returns("2008-09-29T21:21:52.892Z") end it "Should be a kind of ActiveFedora::Base" do @file_asset.should be_kind_of(ActiveFedora::Base) end it "should include Hydra Model Methods" do @file_asset.class.included_modules.should include(Hydra::ModelMethods) @file_asset.should respond_to(:apply_depositor_metadata) end describe 'label' do asset = FileAsset.new asset.label = 'image.jp2' asset.label.should == 'image.jp2' end end
Version data entries
12 entries across 12 versions & 1 rubygems