Sha256: b23e9c836c503a888438342025353c5e61977f88d9896a255e3ddbed57954b80
Contents?: true
Size: 586 Bytes
Versions: 7
Compression:
Stored size: 586 Bytes
Contents
module SphinxHelpers def sphinx @sphinx ||= SphinxController.new end def index(*indices) yield if block_given? sphinx.index *indices sleep 0.25 end end RSpec.configure do |config| config.include SphinxHelpers config.before :all do |group| FileUtils.rm_rf ThinkingSphinx::Configuration.instance.indices_location FileUtils.rm_rf ThinkingSphinx::Configuration.instance.searchd.binlog_path 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
7 entries across 7 versions & 1 rubygems