Sha256: 33f0029f655eb0e600df381079068c7888ba86507b70af775124dbfeed27f614
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
require 'codeclimate-test-reporter' CodeClimate::TestReporter.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 ENV['CELLECT_POOL_SIZE'] = '3' SPAWN_ZK = !ENV['ZK_URL'] require 'pry' require 'oj' require './spec/support/zk_setup.rb' 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| Celluloid.boot example.run Celluloid.shutdown end config.after(:suite) do `zkServer stop #{ CELLECT_ZK_CONFIG } > /dev/null 2>&1` if SPAWN_ZK end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
cellect-server-0.1.3 | spec/spec_helper.rb |
cellect-client-0.1.3 | spec/spec_helper.rb |