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