spec/fields/description_spec.rb in mods_display-0.0.1.beta6 vs spec/fields/description_spec.rb in mods_display-0.0.1
- old
+ new
@@ -10,10 +10,10 @@
@display_label = Stanford::Mods::Record.new.from_str("<mods><physicalDescription displayLabel='SpecialLabel'><form>Form Note</form></physicalDescription></mods>", false).physical_description
@child_display_label = Stanford::Mods::Record.new.from_str("<mods><physicalDescription><form displayLabel='Form Label'>Form Note</form></physicalDescription></mods>", false).physical_description
@mixed = Stanford::Mods::Record.new.from_str("<mods><physicalDescription><form>Form Note</form><extent>Extent Note</extent></physicalDescription></mods>", false).physical_description
end
describe "labels" do
- it "should use the dislayLabel if one is provided" do
+ it "should use the displayLabel if one is provided" do
mods_display_description(@display_label).fields.first.label.should == "SpecialLabel"
end
it "should get the default label for a child element" do
mods_display_description(@form).fields.first.label.should == "Form"
end
\ No newline at end of file