Sha256: c5190b7bf6bf08d2ca3158fe55fc9ec5a756cf50642da8281d1e5ca06ca21ff8

Contents?: true

Size: 645 Bytes

Versions: 12

Compression:

Stored size: 645 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe ModsAsset do
  
  before(:each) do
    @asset = ModsAsset.new nil
  end
  
  it "Should be a kind of ActiveFedora::Base" do
    @asset.should be_kind_of(ActiveFedora::Base)
  end
  
  it "should set up descMetadata and rightsMetadata datastreams" do
    @asset.datastreams.should have_key("descMetadata")
    @asset.datastreams["descMetadata"].should be_instance_of(Hydra::Datastream::ModsArticle)
    @asset.datastreams.should have_key("rightsMetadata")
    @asset.datastreams["rightsMetadata"].should be_instance_of(Hydra::Datastream::RightsMetadata)
  end
  
end

Version data entries

12 entries across 12 versions & 1 rubygems

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