Sha256: c7079033cf9339e45b12ed7674e474caa943d16399ce76f214f7f4a3df4ee6d2

Contents?: true

Size: 778 Bytes

Versions: 26

Compression:

Stored size: 778 Bytes

Contents

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

describe ImageAsset do
  
  before(:each) do
#    Fedora::Repository.stubs(:instance).returns(stub_everything())
    @asset = ImageAsset.new
    @asset.stubs(:create_date).returns("2008-07-02T05:09:42.015Z")
    @asset.stubs(:modified_date).returns("2008-09-29T21:21:52.892Z")
  end
  
  it "Should be a kind of ActiveFedora::Base kind of FileAsset, and instance of ImageAsset" do
    @asset.should be_kind_of(ActiveFedora::Base)
    @asset.should be_kind_of(FileAsset)
    @asset.should be_instance_of(ImageAsset)
  end
  
  it "should have a conforms_to relationship pointing to FileAsset" do
    @asset.ids_for_outbound(:has_model).should include("afmodel:FileAsset")
  end
  
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
hydra-head-4.0.0 test_support/spec/models/image_asset_spec.rb
hydra-head-4.0.0.rc6 test_support/spec/models/image_asset_spec.rb
hydra-head-4.0.0.rc5 test_support/spec/models/image_asset_spec.rb
hydra-head-4.0.0.rc4 test_support/spec/models/image_asset_spec.rb
hydra-head-4.0.0.rc3 test_support/spec/models/image_asset_spec.rb
hydra-head-4.0.0.rc2 test_support/spec/models/image_asset_spec.rb
hydra-head-3.3.0 test_support/spec/models/image_asset_spec.rb
hydra-head-3.2.2 test_support/spec/models/image_asset_spec.rb
hydra-head-3.2.1 test_support/spec/models/image_asset_spec.rb
hydra-head-3.2.0 test_support/spec/models/image_asset_spec.rb
hydra-head-3.2.0.pre3 test_support/spec/models/image_asset_spec.rb
hydra-head-3.2.0.pre2 test_support/spec/models/image_asset_spec.rb
hydra-head-3.2.0.pre1 test_support/spec/models/image_asset_spec.rb
hydra-head-3.1.5 test_support/spec/models/image_asset_spec.rb
hydra-head-3.1.4 test_support/spec/models/image_asset_spec.rb
hydra-head-3.1.3 test_support/spec/models/image_asset_spec.rb
hydra-head-3.1.2 test_support/spec/models/image_asset_spec.rb
hydra-head-3.1.1 test_support/spec/models/image_asset_spec.rb
hydra-head-3.1.0 test_support/spec/models/image_asset_spec.rb
hydra-head-3.1.0.rc2 test_support/spec/models/image_asset_spec.rb