Sha256: 7a0cf8cf0bc88e7f11bb1faa41c3aec00dc1c8e389ed42ebb54548162015f047
Contents?: true
Size: 722 Bytes
Versions: 1
Compression:
Stored size: 722 Bytes
Contents
require 'spec_helper' describe Item do it "should have many generic files" do subject.generic_files.build(title: 'Hi Mom') subject.generic_files.build subject.generic_files.first.title.first.should == "Hi Mom" end it "should have an administrative collection" do # TODO this should become a relationship to an administrative collection. Currently it's a metadata field subject.administrative_collection_id = 112 subject.administrative_collection_id.should == 112 end describe "class" do subject { Item } its(:available_resource_types) { should == {'Thesis or dissertation' => 'ETD', "Collection guide" => "EAD", "Generic object" => "Generic"}} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hydra_mediated-0.0.1 | spec/models/item_spec.rb |