Module: Test::Spec::TestCase::InstanceMethods

### Home Classes Methods

### In Files

- lib/test/spec.rb

### Methods

- ::new
- #after_all
- #before_all
- #context
- #describe
- #position

### Files

- README
- ROADMAP
- SPECS

### Class/Module Index

Quicksearch

- Test
- Test::Spec
- Test::Spec::CustomShould
- Test::Spec::DefinitionError
- Test::Spec::Should
- Test::Spec::ShouldNot
- Test::Spec::TestCase
- Test::Spec::TestCase::ClassMethods
- Test::Spec::TestCase::InstanceMethods
- Test::Unit
- Test::Unit::UI
- Test::Unit::UI::RDox
- Test::Unit::UI::RDox::TestRunner
- Test::Unit::UI::SpecDox
- Test::Unit::UI::SpecDox::TestRunner
- Object

No matching classes.

# 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.