spec/fields/audience_spec.rb in mods_display-0.2.4 vs spec/fields/audience_spec.rb in mods_display-0.3.0
- old
+ new
@@ -9,13 +9,13 @@
@audience = Stanford::Mods::Record.new.from_str("<mods><targetAudience>Audience Note</targetAudience></mods>", false).targetAudience
@display_label = Stanford::Mods::Record.new.from_str("<mods><targetAudience displayLabel='Special Label'>Audience Note</tableOfContents></mods>", false).targetAudience
end
describe "label" do
it "should have a default label" do
- mods_display_audience(@audience).label.should == "Target audience"
+ mods_display_audience(@audience).label.should == "Target audience:"
end
it "should use the displayLabel attribute when one is available" do
- mods_display_audience(@display_label).label.should == "Special Label"
+ mods_display_audience(@display_label).label.should == "Special Label:"
end
end
end
\ No newline at end of file