spec/spec_helper.rb in concurrent-ruby-0.2.2 vs spec/spec_helper.rb in concurrent-ruby-0.3.0.pre.1

- old
+ new

@@ -1,6 +1,13 @@ require 'simplecov' +require 'coveralls' + +SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ + SimpleCov::Formatter::HTMLFormatter, + Coveralls::SimpleCov::Formatter +] + SimpleCov.start do project_name 'concurrent-ruby' add_filter '/md/' add_filter '/pkg/' add_filter '/spec/' @@ -10,12 +17,10 @@ require 'eventmachine' require 'concurrent' require 'concurrent/functions' -require 'functional' - # import all the support files Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require File.expand_path(f) } RSpec.configure do |config| config.order = 'random' @@ -25,8 +30,10 @@ config.before(:each) do end config.after(:each) do + Thread.list.each do |thread| + thread.kill unless thread == Thread.current + end end - end