Sha256: f484458238b0f3ecc517e457b30a33ac287a7e4c792e35bc81152c43928977c7
Contents?: true
Size: 753 Bytes
Versions: 8
Compression:
Stored size: 753 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') require "active_fedora" 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
8 entries across 8 versions & 1 rubygems