Skip to content

Commit

Permalink
Merge pull request #7 from awead/master
Browse files Browse the repository at this point in the history
Ignore failing test in Ruby 1.8.7
  • Loading branch information
awead committed Nov 1, 2012
2 parents decd039 + 3966ae4 commit ba0d666
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/units/xml_terminology_based_solrizer_spec.rb
Expand Up @@ -86,12 +86,14 @@
end

it "should add fields based on type using proxy" do
solr_doc = Hash.new
result = @mods_article.solrize_term(Samples::ModsArticle.terminology.retrieve_term(:pub_date), solr_doc)
solr_doc["pub_date_dt"].should == ["FEB. 2007"]
unless RUBY_VERSION.match("1.8.7")
solr_doc = Hash.new
result = @mods_article.solrize_term(Samples::ModsArticle.terminology.retrieve_term(:pub_date), solr_doc)
solr_doc["pub_date_dt"].should == ["FEB. 2007"]
end
end

it "should add fields based on type using ref" do
it "should add fields based on type using ref" do
solr_doc = Hash.new
result = @mods_article.solrize_term(Samples::ModsArticle.terminology.retrieve_term(:issue_date), solr_doc)
solr_doc["issue_date_dt"].should == ["DATE"]
Expand Down

0 comments on commit ba0d666

Please sign in to comment.