| Module | Test::Spec::TestCase::InstanceMethods |
| In: |
lib/test/spec.rb
|
# 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
# File lib/test/spec.rb, line 346
346: def after_all
347: call_methods_including_parents(:after_all, :reverse)
348: end
# File lib/test/spec.rb, line 342
342: def before_all
343: call_methods_including_parents(:before_all)
344: end
# 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