require File.expand_path('../../tracing.rb',__FILE__) describe "Tracing" do it "should display backtraces every n seconds" do Tracer.doOutput=false Tracer.enable t=Thread.new { sleep 10 } sleep 2 Tracer.disable Tracer.output.length.should >0 t.kill! puts Tracer.output end end