test/unit/text_cleaning_test.rb in jakal-0.1.92 vs test/unit/text_cleaning_test.rb in jakal-0.1.93

- old
+ new

@@ -14,9 +14,19 @@ HTML result = Jkl::Text::remove_short_lines input assert result == "the cat sat on the mat" end + should "Remove shorter lines" do + input = <<-HTML +the cat sat on the mat +the cat sat on the slightly fluffy, yet worn and homely mat +a short line +HTML + result = Jkl::Text::remove_short_lines(input, 8) + assert result == "the cat sat on the slightly fluffy, yet worn and homely mat" + end + should "Remove script tags" do input = <<-HTML the cat sat on the mat <script type="text/javascript" charset="utf-8"> function nofunction(){var bob;} \ No newline at end of file