spec/unit/datastreams_spec.rb in active-fedora-7.0.4 vs spec/unit/datastreams_spec.rb in active-fedora-7.1.0
- old
+ new
@@ -94,9 +94,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 }