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

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