spec/unit/datastreams_spec.rb in active-fedora-6.7.7 vs spec/unit/datastreams_spec.rb in active-fedora-6.7.8
- old
+ new
@@ -84,9 +84,13 @@
describe "#datastreams" do
it "should return the datastream hash proxy" do
subject.stub(:load_datastreams)
subject.datastreams.should be_a_kind_of(ActiveFedora::DatastreamHash)
end
+
+ it "should round-trip to/from YAML" do
+ YAML.load(subject.datastreams.to_yaml).inspect.should == subject.datastreams.inspect
+ end
end
describe "#configure_datastream" do
it "should look up the ds_spec" do
mock_dsspec = { :type => nil }