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

Version Path
hydra-core-5.4.1 spec/models/file_asset_spec.rb
hydra-core-6.5.2 spec/models/file_asset_spec.rb
hydra-core-6.5.1 spec/models/file_asset_spec.rb
hydra-core-6.4.2 spec/models/file_asset_spec.rb
hydra-core-7.0.0.rc1 spec/models/file_asset_spec.rb
hydra-core-7.0.0.pre3 spec/models/file_asset_spec.rb
hydra-core-6.5.0 spec/models/file_asset_spec.rb
hydra-core-6.5.0.rc2 spec/models/file_asset_spec.rb
hydra-core-7.0.0.pre2 spec/models/file_asset_spec.rb
hydra-core-7.0.0.pre1 spec/models/file_asset_spec.rb
hydra-core-6.4.1 spec/models/file_asset_spec.rb
hydra-core-6.4.0 spec/models/file_asset_spec.rb
hydra-core-6.4.0.rc5 spec/models/file_asset_spec.rb
hydra-core-6.4.0.rc4 spec/models/file_asset_spec.rb
hydra-core-6.4.0.rc3 spec/models/file_asset_spec.rb
hydra-core-6.4.0.rc2 spec/models/file_asset_spec.rb
hydra-core-6.4.0.rc1 spec/models/file_asset_spec.rb
hydra-core-6.4.0.pre2 spec/models/file_asset_spec.rb
hydra-core-6.4.0.pre1 spec/models/file_asset_spec.rb
hydra-core-6.3.4 spec/models/file_asset_spec.rb