Method: Test::Spec::TestCase#add
- Defined in:
- lib/test/spec.rb
#add(&block) ⇒ Object
407 408 409 410 411 412 |
# File 'lib/test/spec.rb', line 407 def add(&block) raise ArgumentError, "context needs a block" if block.nil? @testcase.class_eval(&block) self end |