spec/fields/contents_spec.rb in mods_display-0.2.4 vs spec/fields/contents_spec.rb in mods_display-0.3.0

- old
+ new

@@ -9,13 +9,13 @@ @contents = Stanford::Mods::Record.new.from_str("<mods><tableOfContents>Content Note</tableOfContents></mods>", false).tableOfContents @display_label = Stanford::Mods::Record.new.from_str("<mods><tableOfContents displayLabel='Special Label'>Content Note</tableOfContents></mods>", false).tableOfContents end describe "label" do it "should have a default label" do - mods_display_contents(@contents).label.should == "Table of contents" + mods_display_contents(@contents).label.should == "Table of contents:" end it "should use the displayLabel attribute when one is available" do - mods_display_contents(@display_label).label.should == "Special Label" + mods_display_contents(@display_label).label.should == "Special Label:" end end end \ No newline at end of file