Class: Test::Spec::CustomShould

### Home Classes Methods

### In Files

- lib/test/spec.rb

### Parent

Object

### Methods

- ::new
- #assumptions
- #failure_message
- #matches?

### 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::CustomShould

### Attributes

object[RW]

### Public Class Methods

new(obj) click to toggle source

    # File lib/test/spec.rb, line 308
    def initialize(obj)
      self.object = obj
    end

### Public Instance Methods

assumptions(*args, &block) click to toggle source

    # File lib/test/spec.rb, line 321
    def assumptions(*args, &block)
      raise NotImplementedError, "you need to supply a #{self.class}#matches? method"
    end

failure_message() click to toggle source

    # File lib/test/spec.rb, line 312
    def failure_message
      "#{self.class.name} failed"
    end

matches?(*args, &block) click to toggle source

    # File lib/test/spec.rb, line 316
    def matches?(*args, &block)
      assumptions(*args, &block)
      true
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.