Sha256: 1cc0ee840927ad357b72245cdb51e61bcd679aeb027090b78da79450d9f9a286
Contents?: true
Size: 897 Bytes
Versions: 29
Compression:
Stored size: 897 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') require "active_fedora" describe GenericContent do before(:each) do @hydra_content = GenericContent.new end it "Should be a kind of ActiveFedora::Base" do @hydra_content.should be_kind_of(ActiveFedora::Base) end it "should include Hydra Model Methods" do @hydra_content.class.included_modules.should include(Hydra::ModelMethods) @hydra_content.should respond_to(:apply_depositor_metadata) end it "should have accessors for its default datastreams of content and original" do @hydra_content.should respond_to(:has_content?) @hydra_content.should respond_to(:content) @hydra_content.should respond_to(:content=) @hydra_content.should respond_to(:has_original?) @hydra_content.should respond_to(:original) @hydra_content.should respond_to(:original=) end end
Version data entries
29 entries across 29 versions & 1 rubygems