Class: Minitest::Spec

Inherits:
Object show all
Defined in:
lib/minitest/bacon.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.behaves_like(*names) ⇒ Object



127
128
129
130
131
132
133
# File 'lib/minitest/bacon.rb', line 127

def self.behaves_like(*names)
  names.each do |name|
    mod = Minitest::Shared[name]
    raise NameError, "Unknown shared module #{name}" unless mod
    include mod
  end
end

Instance Method Details

#shouldObject



123
124
125
# File 'lib/minitest/bacon.rb', line 123

def should
  Minitest::SelfMonad.new
end