# File lib/test/spec.rb, line 352 def initialize(name) super name # Don't let the default_test clutter up the results and don't # flunk if no tests given, either. throw :invalid_test if name.to_s == "default_test" end
# File lib/test/spec.rb, line 348 def after_all call_methods_including_parents(:after_all, :reverse) end
# File lib/test/spec.rb, line 344 def before_all call_methods_including_parents(:before_all) end
# File lib/test/spec.rb, line 364 def context(*args) raise Test::Spec::DefinitionError, "context definition is not allowed inside a specify-block" end
# File lib/test/spec.rb, line 360 def position self.class.position end