module Cucumber::Core::Test::Result
def self.status_queries(status)
Defines predicate methods on a result class with only the given one
def self.status_queries(status) Module.new do [:passed, :failed, :undefined, :unknown, :skipped, :pending].each do |possible_status| define_method("#{possible_status}?") do possible_status == status end end end end