spec/unit/term_spec.rb in om-1.4.3 vs spec/unit/term_spec.rb in om-1.4.4

- old
+ new

@@ -181,23 +181,21 @@ it "should work for nodes with default_content_path" do @test_volume.xml_builder_template.should == "xml.detail( \'type\'=>'volume' ) { xml.number( '\#{builder_new_value}' ) }" end it "should support terms that are attributes" do - pending "HYDRA-415" @type_attribute_term = OM::XML::Term.new(:type_attribute, :path=>{:attribute=>:type}) - @type_attribute_term.xml_builder_template.should == "TODO!" + @type_attribute_term.xml_builder_template.should == "xml.@type( '\#{builder_new_value}' )" end it "should support terms with namespaced attributes" do @french_title = OM::XML::Term.new(:french_title, :path=>"title", :attributes=>{"xml:lang"=>"fre"}) @french_title.xml_builder_template.should == "xml.title( '\#{builder_new_value}', 'xml:lang'=>'fre' )" end it "should support terms that are namespaced attributes" do - pending "HYDRA-415" @xml_lang_attribute_term = OM::XML::Term.new(:xml_lang_attribute, :path=>{:attribute=>"xml:lang"}) - @xml_lang_attribute_term.xml_builder_template.should == "TODO!" + @xml_lang_attribute_term.xml_builder_template.should == "xml.@xml:lang( '\#{builder_new_value}' )" end end end