Sha256: 643158b8f54e5c03b371a3c9c45a1521cf52d7cfc6d8289d7c65fd773b03d4bc
Contents?: true
Size: 686 Bytes
Versions: 64
Compression:
Stored size: 686 Bytes
Contents
require 'spec_helper' describe FileAsset do before(:each) do @file_asset = FileAsset.new @file_asset.stub(:create_date).and_return("2008-07-02T05:09:42.015Z") @file_asset.stub(:modified_date).and_return("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
64 entries across 64 versions & 2 rubygems