Class: MiniTest::Spec
- Inherits:
-
Object
- Object
- MiniTest::Spec
- Defined in:
- lib/minitest/ext/spec.rb
Class Method Summary collapse
-
.inherit_context(name)
Evaluates a context by name.
Class Method Details
.inherit_context(name)
This method returns an undefined value.
Evaluates a context by name.
21 22 23 24 25 26 27 28 29 |
# File 'lib/minitest/ext/spec.rb', line 21 def inherit_context name if MiniTest::Context.list.has_key?(name) MiniTest::Context.list[name].each do |context| class_eval &context end else raise ArgumentError, "No context by name '#{name}' found." end end |