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 352
352:     def initialize(name)
353:       super name
354: 
355:       # Don't let the default_test clutter up the results and don't
356:       # flunk if no tests given, either.
357:       throw :invalid_test  if name.to_s == "default_test"
358:     end

Public Instance methods

[Source]

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

[Source]

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

[Source]

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

Alias for context

[Source]

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

[Validate]