Sha256: 31bbb44f61054885e268c7b391a3b3055752fbd64749699fa2bece5b55e363ed

Contents?: true

Size: 644 Bytes

Versions: 31

Compression:

Stored size: 644 Bytes

Contents

# 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/testhelp'
require 'mongrel/debug'

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

Version data entries

31 entries across 31 versions & 7 rubygems

Version Path
freels-mongrel-1.1.2 test/test_debug.rb
headius-mongrel-1.1.6.1 test/test_debug.rb
phurley-mongrel-1.1.6.1 test/test_debug.rb
mongrel-maglev--1.1.9.0.1 test/test_debug.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_debug.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_debug.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_debug.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_debug.rb
mongrel-1.2.0.pre2-x86-mswin32 test/test_debug.rb
mongrel-1.2.0.pre2-x86-mingw32 test/test_debug.rb
mongrel-1.2.0.pre2 test/test_debug.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_debug.rb
sho-mongrel-1.1.5 test/test_debug.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_debug.rb
mongrel-1.0.2 test/test_debug.rb
mongrel-1.0.3 test/test_debug.rb
mongrel-1.0.4 test/test_debug.rb
mongrel-1.1.1 test/test_debug.rb
mongrel-1.0.5 test/test_debug.rb
mongrel-1.1.2-java test/test_debug.rb