1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/test/test_debug.rb
evanweaver a3ccea20cb debug test works on jruby
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@680 19e92222-5c0b-0410-8929-a290d50e31e9
2007-10-18 01:05:50 +00:00

27 lines
684 B
Ruby

# Copyright (c) 2005 Zed A. Shaw
# You can redistribute it and/or modify it under the same terms as Ruby.
#
# Additional work donated by contributors. See http://mongrel.rubyforge.org/attributions.html
# for more information.
require 'test/unit'
require 'mongrel/rails'
require 'mongrel/debug'
require 'fileutils'
class MongrelDbgTest < Test::Unit::TestCase
def test_tracing_to_log
FileUtils.rm_rf "log/mongrel_debug"
MongrelDbg::configure
out = StringIO.new
MongrelDbg::begin_trace(:rails)
MongrelDbg::trace(:rails, "Good stuff")
MongrelDbg::end_trace(:rails)
assert File.exist?("log/mongrel_debug"), "Didn't make logging directory"
end
end