spec/spec_helper.rb in riddle-1.0.3 vs spec/spec_helper.rb in riddle-1.0.4
- old
+ new
@@ -1,21 +1,18 @@
$:.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`
+ `php -f spec/fixtures/data_generator.#{Riddle.loaded_version}.php`
sphinx.start
end
config.after :all do
sphinx.stop