Sha256: 040b57129ca4a323a62821056af574a81d8718a3c2d5aa09c13fb7f40e98840b
Contents?: true
Size: 602 Bytes
Versions: 7
Compression:
Stored size: 602 Bytes
Contents
$:.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
7 entries across 7 versions & 1 rubygems