spec/unit/datastreams_spec.rb in active-fedora-5.3.1 vs spec/unit/datastreams_spec.rb in active-fedora-5.4.0

- old
+ new

@@ -5,11 +5,11 @@ describe '.has_metadata' do before do class FooHistory < ActiveFedora::Base has_metadata :name => 'dsid' - has_metadata :name => 'complex_ds', :versionable => true, :autocreate => true, :type => 'Z', :label => 'My Label', :control_group => 'Z' + has_metadata 'complex_ds', :versionable => true, :autocreate => true, :type => 'Z', :label => 'My Label', :control_group => 'Z' end end it "should have a ds_specs entry" do FooHistory.ds_specs.should have_key('dsid') @@ -26,14 +26,16 @@ describe '.has_file_datastream' do before do class FooHistory < ActiveFedora::Base has_file_datastream :name => 'dsid' + has_file_datastream 'another' end end it "should have reasonable defaults" do FooHistory.ds_specs['dsid'].should include(:type => ActiveFedora::Datastream, :label => 'File Datastream', :control_group => 'M') + FooHistory.ds_specs['another'].should include(:type => ActiveFedora::Datastream, :label => 'File Datastream', :control_group => 'M') end end describe "#serialize_datastreams" do it "should touch each datastream" do