spec/unit/datastreams_spec.rb in active-fedora-7.0.0.rc1 vs spec/unit/datastreams_spec.rb in active-fedora-7.0.0.rc2
- old
+ new
@@ -23,16 +23,16 @@
FooHistory.ds_specs['complex_ds'].should include(:versionable => true, :autocreate => true, :type => 'Z', :label => 'My Label', :control_group => 'Z')
end
it "should raise an error if you don't give a type" do
expect{ FooHistory.has_metadata "bob" }.to raise_error ArgumentError,
- "You must provide a :type property for the metadata datastream 'bob'"
+ "You must provide a :type property for the datastream 'bob'"
end
it "should raise an error if you don't give a dsid" do
expect{ FooHistory.has_metadata type: ActiveFedora::SimpleDatastream }.to raise_error ArgumentError,
- "You must provide a name (dsid) for the metadata datastream"
+ "You must provide a name (dsid) for the datastream"
end
end
describe '.has_file_datastream' do
before do
@@ -134,10 +134,10 @@
end
end
describe "#datastream_from_spec" do
it "should fetch the rubydora datastream" do
- subject.inner_object.should_receive(:datastream_object_for).with('dsid', {})
+ subject.inner_object.should_receive(:datastream_object_for).with('dsid', {}, {})
subject.datastream_from_spec({}, 'dsid')
end
end
describe "#add_datastream" do