Sha256: 1854d8f404982e30bd1a1a030c2a0d31bc8e33214b10f8b2d56d648f5c3909b4
Contents?: true
Size: 706 Bytes
Versions: 3
Compression:
Stored size: 706 Bytes
Contents
require 'spec_helper' describe HydraPbcore::Methods do before :each do @object = HydraPbcore::Datastream::Document.new end describe ".remove_node" do it "should delete nodes given a term" do @object.insert_publisher "bar" @object.publisher.first.should == "bar" @object.remove_node :publisher @object.publisher.should be_empty end it "should delete nodes all with their parents" do @object.is_part_of("foo", {:annotation => "Archival Collection"}) @object.collection.first.should == "foo" @object.remove_node :collection, 0, {:include_parent? => TRUE} @object.find_by_terms(:relation).should be_empty end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hydra-pbcore-3.3.2 | spec/methods_spec.rb |
hydra-pbcore-3.3.1 | spec/methods_spec.rb |
hydra-pbcore-3.3.0 | spec/methods_spec.rb |