Browse files

Add an rspec test to make it easy to check for paragraphs of (plain) …

…text in sample HTML documents that have been processed with readability.
  • Loading branch information...
1 parent 65c347b commit d00f1725680b3f706e8c30701fcce53f39e62239 Lee Mallabone committed with cantino Mar 29, 2010
@@ -0,0 +1,14 @@
+# This sample originally from
+$required_fragments = [
+ "Judge rules Briton can be force-fed", # headline
+ "A US judge has ruled that prison officials may continue force-feeding a Briton who began a hunger strike in September 2007 over claims he was convicted on a fabricated sexual assault charge.",
+ "William Coleman, reportedly originally from Liverpool, who is serving an eight-year sentence for rape, said he began his hunger strike to protest against a corrupt judicial system.",
+ "The state of Connecticut began force-feeding Coleman in September 2008 after he stopped accepting fluids, but he argued that the feedings violate his right of free speech."
+$excluded_fragments = [
+# "Share this article" # ideally this would not be present
Oops, something went wrong.

0 comments on commit d00f172

Please sign in to comment.