Sha256: 51ed29dbc6e9f7a6c1d5528000b13900ef17a7e75d4b7c8fea578606f125ac4a
Contents?: true
Size: 661 Bytes
Versions: 2
Compression:
Stored size: 661 Bytes
Contents
require File.expand_path(File.dirname(__FILE__)) + '/../test_helper' class RemoteIndexTest < ActiveSupport::TestCase def setup ActsAsFerret::remote = 'druby://localhost:9999' end def test_raises_drb_errors ActsAsFerret::raise_drb_errors = true @srv = ActsAsFerret::RemoteIndex.new :name => 'idx' assert_raise DRb::DRbConnError do @srv.find_ids 'some query' end end def test_does_not_raise_drb_errors ActsAsFerret::raise_drb_errors = false @srv = ActsAsFerret::RemoteIndex.new :name => 'idx' total_hits, results = @srv.find_ids( 'some query' ) assert_equal 0, total_hits assert results.empty? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_ferret-0.5.4 | doc/demo/test/unit/remote_index_test.rb |
acts_as_ferret-0.5.3 | doc/demo/test/unit/remote_index_test.rb |