class Object

Public Instance Methods

shared(name, &block) click to toggle source
# File lib/minitest/bacon.rb, line 148
def shared(name, &block)
  Minitest::Shared[name] = Module.new do |m|
    (class << m; self; end).send :define_method, :included do |cls|
      cls.instance_eval(&block)
    end
  end
should(*args, &block) click to toggle source
# File lib/minitest/bacon.rb, line 144
def should(*args, &block)
  Minitest::ValueMonad.new(self).be(*args, &block)
end
true?() click to toggle source
# File lib/minitest/bacon.rb, line 140
def true?
  !!self
end