class Object
Public Instance Methods
functional_tests(options={}, &block)
click to toggle source
Used to define a block of functional tests.
functional_tests do test "verify something" do ... end end
Configuration Options:
* allow - Allows you to specify the methods that are allowed despite being disallowed. See Test::Unit::TestCase.disallow_helpers! or Test::Unit::TestCase.disallow_setup! for more info
# File lib/object_extension.rb 32 def functional_tests(options={}, &block) 33 do_tests("Functionals", options, &block) 34 end
unit_tests(options={}, &block)
click to toggle source
Used to define a block of unit tests.
unit_tests do test "verify something" do ... end end
Configuration Options:
* allow - Allows you to specify the methods that are allowed despite being disallowed. See Test::Unit::TestCase.disallow_helpers! or Test::Unit::TestCase.disallow_setup! for more info
# File lib/object_extension.rb 15 def unit_tests(options={}, &block) 16 do_tests("Units", options, &block) 17 end