In Files

Parent

Files

HelpTest

Public Instance Methods

no_warn() click to toggle source
# File lib/ihelp.rb, line 1001
def no_warn
  old_w = $-w
  $-w = nil
  yield
  $-w = old_w
end
setup() click to toggle source
# File lib/ihelp.rb, line 1008
def setup
  no_warn{
    Object.const_set("ARGV", ["--readline", "--prompt-mode", "simple"])
  }
  IHelp.instance_variable_set(
    :@ri_driver,
    IHelp::IHelpDriver.new([]))
end
test_class_help() click to toggle source
# File lib/ihelp.rb, line 1029
def test_class_help
  assert(String.help_yaml)
end
test_class_inherited_method_help() click to toggle source
# File lib/ihelp.rb, line 1037
def test_class_inherited_method_help
  assert(String.help_yaml(:map))
end
test_class_method_help() click to toggle source
# File lib/ihelp.rb, line 1033
def test_class_method_help
  assert(String.help_yaml(:new))
end
test_help_yamlings() click to toggle source
# File lib/ihelp.rb, line 1055
def test_help_yamlings
  assert("string".help_yaml(:reverse) ==
         help_yaml("String#reverse"))
  assert(String.help_yaml(:new) ==
         help_yaml("String::new"))
end
test_inherited_method_help() click to toggle source
# File lib/ihelp.rb, line 1025
def test_inherited_method_help
  assert("string".help_yaml(:map))
end
test_method_constraints() click to toggle source
# File lib/ihelp.rb, line 1048
def test_method_constraints
  assert((not "string".help_yaml(:new,true)))
  assert((not "string".help_yaml(:reverse,false)))
  assert((not String.help_yaml(:new,true)))
  assert((not String.help_yaml(:reverse,false)))
end
test_method_equalities() click to toggle source
# File lib/ihelp.rb, line 1041
def test_method_equalities
  assert(String.help_yaml(:new) ==
         "string".help_yaml(:new))
  assert(String.help_yaml(:reverse) ==
         "string".help_yaml(:reverse))
end
test_method_help() click to toggle source
# File lib/ihelp.rb, line 1021
def test_method_help
  assert("string".help_yaml(:reverse))
end
test_multipart_namespaces() click to toggle source
# File lib/ihelp.rb, line 1062
def test_multipart_namespaces
  assert(Test::Unit.help_yaml)
  assert(help_yaml("Test::Unit"))
  assert(Test::Unit.help_yaml("run?"))
  assert(help_yaml("Test::Unit.run?"))
  assert(help_yaml("Test::Unit::run?"))
  assert(help_yaml("Test::Unit#run?"))
end
test_not_found() click to toggle source
# File lib/ihelp.rb, line 1071
def test_not_found
  assert((NoHelp.help_yaml == nil))
  assert((String.help_yaml(:nonexistent) == nil))
end
test_simple_help() click to toggle source
# File lib/ihelp.rb, line 1017
def test_simple_help
  assert("string".help_yaml)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.