Sha256: 213d32cd305e5c481e57f35ba7918f960d418c61d24ccf0ae155c75c9309b9c8
Contents?: true
Size: 574 Bytes
Versions: 4
Compression:
Stored size: 574 Bytes
Contents
module SphinxHelpers def sphinx @sphinx ||= SphinxController.new end def index(*indices) yield if block_given? ThinkingSphinx.before_index_hooks.each &:call sphinx.index *indices sleep 0.25 ThinkingSphinx::Connection.pool.clear end def work Delayed::Worker.new.work_off end end RSpec.configure do |config| config.include SphinxHelpers config.before :all do |group| sphinx.setup && sphinx.start if group.class.metadata[:live] end config.after :all do |group| sphinx.stop if group.class.metadata[:live] end end
Version data entries
4 entries across 4 versions & 1 rubygems