module SimpleCov
def usable?
also printing an appropriate warning
Checks whether we're on a proper version of ruby (1.9+) and returns false if this is not the case,
def usable? unless "1.9".respond_to?(:encoding) warn "WARNING: SimpleCov is activated, but you're not running Ruby 1.9+ - no coverage analysis will happen" return false end true end