test/connection_test.rb in rsolr-ext-0.11.0 vs test/connection_test.rb in rsolr-ext-0.11.1
- old
+ new
@@ -1,21 +1,15 @@
-require 'test_unit_test_case'
-require File.join(File.dirname(__FILE__), '..', 'lib', 'rsolr-ext')
-require 'helper'
-
class RSolrExtConnectionTest < Test::Unit::TestCase
test 'the #connect method' do
connection = RSolr::Ext.connect
assert connection.respond_to?(:find)
end
test 'the #find method' do
connection = RSolr::Ext.connect
- response = connection.find 3, 10, :q=>'*:*'#, :page=>1, :per_page=>10
+ response = connection.find :page=>3, :per_page=>10, :q=>'*:*'#, :page=>1, :per_page=>10
assert response.kind_of?(Mash)
- #r = connection.find 3, 5, :q=>'*:*', :phrase_queries=>'rose'
- #assert ! r.header[:params].include?(:phrase_queries)
end
test 'the #find method with a custom request handler' do
connection = RSolr::Ext.connect
response = connection.find '/select', :q=>'*:*'
\ No newline at end of file