In Files

Test::Spec::TestCase::InstanceMethods

Public Class Methods

new(name) click to toggle source
# 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

Public Instance Methods

after_all() click to toggle source
# File lib/test/spec.rb, line 348
def after_all
  call_methods_including_parents(:after_all, :reverse)
end
before_all() click to toggle source
# File lib/test/spec.rb, line 344
def before_all
  call_methods_including_parents(:before_all)
end
context(*args) click to toggle source
# File lib/test/spec.rb, line 364
def context(*args)
  raise Test::Spec::DefinitionError,
    "context definition is not allowed inside a specify-block"
end
Also aliased as: describe
describe(*args) click to toggle source
Alias for: context
position() click to toggle source
# File lib/test/spec.rb, line 360
def position
  self.class.position
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.