class BugGuard

Public Class Methods

new(bug, version) click to toggle source
# File lib/mspec/guards/bug.rb, line 4
def initialize(bug, version)
  @bug = bug
  @version = SpecVersion.new version, true
  self.parameters = [@bug, @version]
end

Public Instance Methods

match?() click to toggle source
# File lib/mspec/guards/bug.rb, line 10
def match?
  return false if MSpec.mode? :no_ruby_bug
  standard? && ruby_version <= @version
end