Module: Test::Unit::Notify

### Home Classes Methods

### In Files

- lib/test/unit/notify.rb

### Namespace

- CLASS Test::Unit::Notify::Growlnotify
- CLASS Test::Unit::Notify::Notifier
- CLASS Test::Unit::Notify::NotifyCommand
- CLASS Test::Unit::Notify::NotifySend

### Methods

- ::disable
- ::enable
- ::enable=
- ::enabled?
- ::setup_auto_runner

### Class/Module Index

Quicksearch

- Test
- Test::Unit
- Test::Unit::Notify
- Test::Unit::Notify::Growlnotify
- Test::Unit::Notify::Notifier
- Test::Unit::Notify::NotifyCommand
- Test::Unit::Notify::NotifySend

No matching classes.

# Test::Unit::Notify

### Constants

VERSION

  test-unit-notify version number formatted as "#{MAJOR}.#{MINOR}.#{MICRO}".

### Public Class Methods

disable() click to toggle source

Disables test result notification by default. It can be disabled by @--notify@ command line option.

    # File lib/test/unit/notify.rb, line 51
    def disable
      @@enable = false
    end

enable() click to toggle source

Enables test result notification by default. It can be disabled by @--no-notify@ command line option.

    # File lib/test/unit/notify.rb, line 45
    def enable
      @@enable = true
    end

enable=(enable) click to toggle source

@deprecated Use {Notify.enable} or {Notify.disable} instead.

    # File lib/test/unit/notify.rb, line 56
    def enable=(enable)
      self.default = enable
    end

enabled?() click to toggle source

@return [Boolean] return whether test result notification

    is enabled or not.

    # File lib/test/unit/notify.rb, line 62
    def enabled?
      @@enable = Notifier.available? if @@enable.nil?
      @@enable
    end

setup_auto_runner(auto_runner, enable=nil) click to toggle source

@private

    # File lib/test/unit/notify.rb, line 68
    def setup_auto_runner(auto_runner, enable=nil)
      auto_runner.listeners.reject! do |listener|
        listener.is_a?(Notify::Notifier)
      end
      enable = enabled? if enable.nil?
      auto_runner.listeners << Notifier.new if enable
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.