Sha256: f61f38621630f6c8b3f3b86366d35d0c530e7c83e0801a1fef2cd1e2822a4af9

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

require 'riddle'
require 'spec'
require 'spec/sphinx_helper'

Spec::Runner.configure do |config|
  sphinx = SphinxHelper.new
  sphinx.setup_mysql
  sphinx.generate_configuration
  sphinx.index
  
  config.before :all do
    `php -f spec/fixtures/data_generator.php`
    sphinx.start
  end
  
  # config.before :each do
  #   sphinx.reset
  # end
  
  config.after :all do
    sphinx.stop
  end
end

def query_contents(key)
  open("spec/fixtures/data/#{key.to_s}.bin") { |f| f.read }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ultrasphinx-1.11 vendor/riddle/spec/spec_helper.rb