spec/unit/document_spec.rb in om-3.0.6 vs spec/unit/document_spec.rb in om-3.0.7
- old
+ new
@@ -87,11 +87,11 @@
end
describe ".find_by_terms_and_value" do
it "should fail gracefully if you try to look up nodes for an undefined property" do
- pending "better to get an informative error?"
+ skip "better to get an informative error?"
@fixturemods.find_by_terms_and_value(:nobody_home).should == []
end
it "should use Nokogiri to retrieve a NodeSet corresponding to the term pointers" do
@mods_article.find_by_terms_and_value( :person ).length.should == 2
end
@@ -121,21 +121,21 @@
end
it "should find a NodeSet where a terminology attribute has been set to :none" do
@mods_article.find_by_terms( {:person=>1}, :person_id).first.text.should == "123987"
end
it "should support accessors whose relative_xpath is a lookup array instead of an xpath string" do
- # pending "this only impacts scenarios where we want to display & edit"
+ # skip "this only impacts scenarios where we want to display & edit"
DocumentTest.terminology.retrieve_term(:title_info, :language).path.should == {:attribute=>"lang"}
# @sample.retrieve( :title, 1 ).first.text.should == "Artikkelin otsikko Hydrangea artiklan 1"
@mods_article.find_by_terms( {:title_info=>1}, :language ).first.text.should == "finnish"
end
it "should support xpath queries as the pointer" do
@mods_article.find_by_terms('//oxns:name[@type="personal"][1]/oxns:namePart[1]').first.text.should == "FAMILY NAME"
end
it "should return nil if the xpath fails to generate" do
- pending "Can't decide if it's better to return nil or raise an error. Choosing informative errors for now."
+ skip "Can't decide if it's better to return nil or raise an error. Choosing informative errors for now."
@mods_article.find_by_terms( {:foo=>20}, :bar ).should == nil
end
it "should support terms that point to attributes instead of nodes" do
@mods_article.find_by_terms( {:title_info=>1}, :language ).first.text.should == "finnish"