Use const_defined? for checking a constant is defined #58

Merged
merged 1 commit into from May 11, 2012
Commits on May 11, 2012
  1. @kou

    Use const_defined? for checking a constant is defined

    kou committed May 11, 2012
    #51 uses !(Test::Unit.constants & [:Omission, "Omission"]).empty? for
    checking a constant is defined. But it's better that Module#const_defined?
    is used for that propose.