Sha256: ce83578371f67a7d542321142a610d83742f6f1b05bd7e5daa36f695b43159f3
Contents?: true
Size: 671 Bytes
Versions: 4
Compression:
Stored size: 671 Bytes
Contents
$:.unshift File.dirname(__FILE__) + '/../lib' SphinxVersion = ENV['VERSION'] || '0.9.8' require 'riddle' require "riddle/#{SphinxVersion}" 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.#{SphinxVersion}.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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
riddle-1.0.3 | spec/spec_helper.rb |
riddle-1.0.2 | spec/spec_helper.rb |
riddle-1.0.1 | spec/spec_helper.rb |
riddle-1.0.0 | spec/spec_helper.rb |