Sha256: 0c35c83b7d910756edd1e542ac7c8123ad169775cc106f06e6910edda456d750

Contents?: true

Size: 736 Bytes

Versions: 15

Compression:

Stored size: 736 Bytes

Contents

require 'rubygems'
require 'bundler'

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

Dir['spec/support/**/*.rb'].each { |f| require f }

Bundler.require :default, :development

require 'riddle'

RSpec.configure do |config|
  config.include BinaryFixtures

  sphinx = Sphinx.new
  sphinx.setup_mysql
  sphinx.generate_configuration
  sphinx.index

  BinaryFixtures.build_fixtures Riddle.loaded_version

  config.before :all do |group|
    sphinx.start if group.class.metadata[:live]
  end

  config.after :all do |group|
    sphinx.stop if group.class.metadata[:live]
  end

  # enable filtering for examples
  config.filter_run :wip => true
  config.run_all_when_everything_filtered = true
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
riddle-2.1.0 spec/spec_helper.rb
riddle-2.0.0 spec/spec_helper.rb
riddle-1.5.12 spec/spec_helper.rb
riddle-1.5.11 spec/spec_helper.rb
riddle-1.5.10 spec/spec_helper.rb
riddle-1.5.9 spec/spec_helper.rb
riddle-1.5.8 spec/spec_helper.rb
riddle-1.5.7 spec/spec_helper.rb
riddle-1.5.6 spec/spec_helper.rb
riddle-1.5.5 spec/spec_helper.rb
riddle-1.5.4 spec/spec_helper.rb
riddle-1.5.3 spec/spec_helper.rb
riddle-1.5.2 spec/spec_helper.rb
riddle-1.5.1 spec/spec_helper.rb
riddle-1.5.0 spec/spec_helper.rb