class Regexp
  def wildcard_match?(other)
    self == other ||
    !!(other.is_a?(String) && other =~ self)
  end

  alias :eql? :==
end

class Regexp
  def wildcard_match?(other)
    self == other ||
    !!(other.is_a?(String) && other =~ self)
  end

  alias_method :eql?, :==
end

Fix warning when running tests under Ruby 1.8
Fix warning when running tests under Ruby 1.8
