Module Test::Spec::TestCase::InstanceMethods
In: lib/test/spec.rb

Methods

after_all   before_all   context   describe   new   position  

Public Class methods

[Source]

     # File lib/test/spec.rb, line 350
350:     def initialize(name)
351:       super name
352: 
353:       # Don't let the default_test clutter up the results and don't
354:       # flunk if no tests given, either.
355:       throw :invalid_test  if name.to_s == "default_test"
356:     end

Public Instance methods

[Source]

     # File lib/test/spec.rb, line 346
346:     def after_all
347:       call_methods_including_parents(:after_all, :reverse)
348:     end

[Source]

     # File lib/test/spec.rb, line 342
342:     def before_all
343:       call_methods_including_parents(:before_all)
344:     end

[Source]

     # File lib/test/spec.rb, line 362
362:     def context(*args)
363:       raise Test::Spec::DefinitionError,
364:         "context definition is not allowed inside a specify-block"
365:     end
describe(*args)

Alias for context

[Source]

     # File lib/test/spec.rb, line 358
358:     def position
359:       self.class.position
360:     end

[Validate]