spec/fields/collection_spec.rb in mods_display-0.2.4 vs spec/fields/collection_spec.rb in mods_display-0.3.0
- old
+ new
@@ -10,13 +10,13 @@
@non_collection = Stanford::Mods::Record.new.from_str("<mods><relatedItem><titleInfo><title>Not a Collection</title></titleInfo></relatedItem></mods>", false).related_item
@display_label = Stanford::Mods::Record.new.from_str("<mods><relatedItem displayLabel='Special Collection'><titleInfo><title>Not a Collection</title></titleInfo></relatedItem></mods>", false).related_item
end
describe "label" do
it "should default to Collection" do
- mods_display_collection(@collection).label.should == "Collection"
+ mods_display_collection(@collection).label.should == "Collection:"
end
it "should get the displayLabel if available" do
- mods_display_collection(@display_label).label.should == "Special Collection"
+ mods_display_collection(@display_label).label.should == "Special Collection:"
end
end
describe "fields" do
it "should get a collection title if there is an appropriate typeOfResource field with the collection attribute" do
fields = mods_display_collection(@collection).fields
\ No newline at end of file