Module: Kernel

Defined in:
lib/minitest/minitest_ext.rb

Instance Method Summary collapse

Instance Method Details

#document(desc, additional_desc = nil, &block) ⇒ Object

`document` is an alias for `describe` but it also declares the tests order-dependent. This is because we would like to have the documentation always in the same order.


34
35
36
37
38
39
# File 'lib/minitest/minitest_ext.rb', line 34

def document(desc, additional_desc=nil, &block)
  describe desc, additional_desc do
    i_suck_and_my_tests_are_order_dependent!
    self.instance_eval(&block)
  end
end