Class | TestText |
In: |
test.rb
|
Parent: | Test::Unit::TestCase |
TestText provides unit test cases for the text function described above.
One parse method is defined to take care of the small bit of administrivia necessary. The remainder are the actual test cases, and all begin with the string "test_". Each invokes the parse method with a given feed, and makes an assertion on what the expected results are.