spec/spec.sane.rb in sane-0.21.3 vs spec/spec.sane.rb in sane-0.22.0

- old
+ new

@@ -1,8 +1,7 @@ $:.unshift File.expand_path('../lib') require 'rubygems' -require 'fast_require' if RUBY_VERSION >= '1.9' require File.dirname(__FILE__) + '/../lib/sane' require 'spec/autorun' class Object alias :yes :should # a.yes == [3] @@ -156,7 +155,14 @@ end it "should have a File.home method" do assert File.home == File.expand_path('~') end - + + require 'benchmark' + + it "should Thread.join_all_others" do + a = Thread.new { sleep 1 } + assert Benchmark.realtime{Thread.join_all_others} > 0.5 + end + end