module Etest::Assertions::Etest # # this actually tests the existance of an assertion and one successful # assertion, nothing less, and nothing more... def test_asserts assert_respond_to "nsn", :upcase assert respond_to?(:assert_invalid) assert respond_to?(:assert_valid) end class TestError < RuntimeError; end def test_assert_raises_kind_of assert_raises_kind_of RuntimeError do raise TestError end end def test_assert_file_exist assert_file_exist __FILE__ end def test_xml assert_valid_xml <<-XML

lkhj

XML assert_invalid_xml <<-XML

lkhj

XML end end