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

Version Path
hydra-head-4.1.3 test_support/spec/models/file_asset_spec.rb
hydra-head-4.1.2 test_support/spec/models/file_asset_spec.rb
hydra-head-4.1.1 test_support/spec/models/file_asset_spec.rb
hydra-head-4.1.0 test_support/spec/models/file_asset_spec.rb
hydra-head-4.0.3 test_support/spec/models/file_asset_spec.rb
hydra-head-4.0.2 test_support/spec/models/file_asset_spec.rb
hydra-head-4.0.1 test_support/spec/models/file_asset_spec.rb
hydra-head-4.0.0 test_support/spec/models/file_asset_spec.rb
hydra-head-4.0.0.rc6 test_support/spec/models/file_asset_spec.rb
hydra-head-4.0.0.rc5 test_support/spec/models/file_asset_spec.rb
hydra-head-4.0.0.rc4 test_support/spec/models/file_asset_spec.rb
hydra-head-4.0.0.rc3 test_support/spec/models/file_asset_spec.rb