nicksieger/ci_reporter — pull request #73 by seanwalbran (2012-09-06 15:10:31+00:00)
Title: do not search ancestors when checking Test::Unit.const_defined?

Fix a false-positive detection of Test::Unit::Notification being defined due to const_defined? searching up the object heirarchy by default, which results in an uninitialized-constant-name-error at runtime if e.g. :Notification is defined elsewhere.

[1] pry(main)> Test::Unit.const_defined?(:Notification)
=> true
[2] pry(main)> Test::Unit.const_defined?(:Notification, false)
=> false
[5] pry(main)> Object.const_defined?(:Notification, false)
=> true

(Introduced in this commit: https://github.com/nicksieger/ci_reporter/commit/e7a0ff810a9cf21678ad6704b41fc3ad093d38ff
)