class Lemon::TestModule

The nomenclature of a TestModule limts the focus of testing the methods of a module.

Public Class Methods

new(settings={}, &block) click to toggle source

New unit test.

Calls superclass method Lemon::TestCase::new
# File lib/lemon/test_module.rb, line 15
def initialize(settings={}, &block)
  @tested = false
  super(settings)
end

Public Instance Methods

to_s() click to toggle source

Gives the name of the target module.

# File lib/lemon/test_module.rb, line 37
def to_s
  target.to_s
end
type() click to toggle source

The type of test case.

# File lib/lemon/test_module.rb, line 30
def type
  'Module'
end
validate_settings() click to toggle source

Make sure the target is a module.

# File lib/lemon/test_module.rb, line 23
def validate_settings
  raise "#{@target} is not a module" unless Module === @target
end