Sha256: 717554acab2c7c8ad6146ac921fcf9749d10467d7e535591d591b9080be9f06a

Contents?: true

Size: 745 Bytes

Versions: 3

Compression:

Stored size: 745 Bytes

Contents

require 'worker_roulette'
require 'evented-spec'
require 'simplecov'
require 'simplecov-rcov'
require 'rspec'
class SimpleCov::Formatter::MergedFormatter
  def format(result)
     SimpleCov::Formatter::HTMLFormatter.new.format(result)
     SimpleCov::Formatter::RcovFormatter.new.format(result)
  end
end
SimpleCov.formatter = SimpleCov::Formatter::MergedFormatter
SimpleCov.start

require File.expand_path(File.join("..", "..", "lib", "worker_roulette.rb"), __FILE__)
include WorkerRoulette

Dir[File.join(File.dirname(__FILE__), 'helpers', '**/*.rb')].sort.each { |file| require file.gsub(".rb", "")}

EM::Hiredis.reconnect_timeout = 0.01

RSpec.configure do |c|
  c.after(:each) do
    Redis.new(WorkerRoulette.redis_config).flushdb
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
worker_roulette-0.0.10 spec/spec_helper.rb
worker_roulette-0.0.9 spec/spec_helper.rb
worker_roulette-0.0.8 spec/spec_helper.rb