Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Add an rspec test to make it easy to check for paragraphs of (plain) …
Browse files Browse the repository at this point in the history
…text in sample HTML documents that have been processed with readability.
  • Loading branch information
Lee Mallabone authored and cantino committed Oct 1, 2010
1 parent 3e73f7f commit fb1d1f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions spec/fixtures/samples/channel4-1-fragments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
]

$excluded_fragments = [
"Share this article" # ideally this would not be present

# "Share this article" # ideally this would not be present
]
2 changes: 1 addition & 1 deletion spec/readability_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
puts "testing #{sample}..."

$required_fragments.each do |required_text|
doc.should include(required_text), doc
doc.should include(required_text)
checks += 1
end

Expand Down

0 comments on commit fb1d1f5

Please sign in to comment.