Sha256: 6b714a9bc7e7a9a3b9bb108bf78095167f88e3dd543ff36fe13710b9fdc67cf7

Contents?: true

Size: 622 Bytes

Versions: 6

Compression:

Stored size: 622 Bytes

Contents

require 'rubygems'

$:.unshift File.dirname(__FILE__) + '/../lib'

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.#{Riddle.loaded_version}.php`
    sphinx.start
  end
  
  config.after :all do
    sphinx.stop
  end
end

def query_contents(key)
  contents = open("spec/fixtures/data/#{key.to_s}.bin") { |f| f.read }
  contents.respond_to?(:encoding) ?
    contents.force_encoding('ASCII-8BIT') : contents
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
riddle-1.2.2 spec/spec_helper.rb
riddle-1.2.1 spec/spec_helper.rb
riddle-1.2.0 spec/spec_helper.rb
riddle-1.1.0 spec/spec_helper.rb
riddle-1.0.12 spec/spec_helper.rb
riddle-1.0.11 spec/spec_helper.rb