You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by eh...@apache.org on 2007/08/15 20:32:23 UTC

svn commit: r566294 - /lucene/solr/trunk/client/ruby/solr-ruby/test/functional/server_test.rb

Author: ehatcher
Date: Wed Aug 15 11:32:22 2007
New Revision: 566294

URL: http://svn.apache.org/viewvc?view=rev&rev=566294
Log:
Add entity test, to show text goes through literally

Modified:
    lucene/solr/trunk/client/ruby/solr-ruby/test/functional/server_test.rb

Modified: lucene/solr/trunk/client/ruby/solr-ruby/test/functional/server_test.rb
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/solr-ruby/test/functional/server_test.rb?view=diff&rev=566294&r1=566293&r2=566294
==============================================================================
--- lucene/solr/trunk/client/ruby/solr-ruby/test/functional/server_test.rb (original)
+++ lucene/solr/trunk/client/ruby/solr-ruby/test/functional/server_test.rb Wed Aug 15 11:32:22 2007
@@ -199,6 +199,13 @@
     response = @connection.send(request)
     assert_equal ["Apache >>Solr<<"], response.highlighted(1, :title_text)
   end
+  
+  def test_entities
+    @connection.add(:id => 1, :title_text => "&nbsp;")
+    response = @connection.query('nbsp')
+    assert_equal 1, response.total_hits
+    assert_equal '1', response.hits[0]['id']
+  end
 
   # wipe the index clean
   def clean