Sha256: 4be8ca02e92dc9fc44d03a0a7d19f34c4bb3bfe77a5769239755baa355637d62

Contents?: true

Size: 955 Bytes

Versions: 6

Compression:

Stored size: 955 Bytes

Contents

require "simplecov"
SimpleCov.start

CELLECT_ROOT = File.expand_path File.join(File.dirname(__FILE__), '../')

%w(lib ext).each do |name|
  dir = File.join CELLECT_ROOT, name
  $LOAD_PATH.unshift dir unless $LOAD_PATH.include? dir
end

Bundler.require :test, :development

require 'pry'
require 'oj'
require 'cellect/server'
require 'cellect/client'
require 'celluloid/rspec'
require 'rack/test'
Celluloid.shutdown_timeout = 1
Celluloid.logger = nil
Dir["./spec/support/**/*.rb"].sort.each{ |f| require f }

Cellect::Server.adapter = SpecAdapter.new
SET_TYPES = %w(random priority pairwise_random pairwise_priority)

RSpec.configure do |config|
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
  config.order = 'random'
  config.include CellectHelper

  config.around(:each) do |example|
    Redis.new.flushdb
    Celluloid.boot
    Attention.deactivate
    example.run
    Celluloid.shutdown
    Attention.deactivate
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
cellect-client-3.0.2 spec/spec_helper.rb
cellect-server-3.0.2 spec/spec_helper.rb
cellect-client-3.0.1 spec/spec_helper.rb
cellect-server-3.0.1 spec/spec_helper.rb
cellect-client-3.0.0 spec/spec_helper.rb
cellect-server-3.0.0 spec/spec_helper.rb