Sha256: a030a6eb87759d91a3d7da5079a62f4ceb5eafcdf839994bd34ad9ea72cfba1c
Contents?: true
Size: 792 Bytes
Versions: 8
Compression:
Stored size: 792 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.relationships[:self][:has_model].should include("info:fedora/afmodel:FileAsset") end end
Version data entries
8 entries across 8 versions & 1 rubygems