spec/fields/contents_spec.rb in mods_display-0.0.1.beta6 vs spec/fields/contents_spec.rb in mods_display-0.0.1

- old
+ new

@@ -9,10 +9,10 @@ @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" end end \ No newline at end of file