Skip to content

Commit

Permalink
Merge pull request #91 from andyw8/andyw8/fix-typo-in-variable-name
Browse files Browse the repository at this point in the history
Fix typo in variable name
  • Loading branch information
cantino authored May 10, 2021
2 parents fbdecd9 + 9cddaab commit b1b87ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/readability_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
before do
@bbc = File.read(File.dirname(__FILE__) + "/fixtures/bbc.html")
@nytimes = File.read(File.dirname(__FILE__) + "/fixtures/nytimes.html")
@thesum = File.read(File.dirname(__FILE__) + "/fixtures/thesun.html")
@thesun = File.read(File.dirname(__FILE__) + "/fixtures/thesun.html")
@ch = File.read(File.dirname(__FILE__) + "/fixtures/codinghorror.html")

FakeWeb::Registry.instance.clean_registry
Expand All @@ -76,7 +76,7 @@
end

it "should show one image, but outside of the best candidate" do
@doc = Readability::Document.new(@thesum)
@doc = Readability::Document.new(@thesun)
expect(@doc.images).to eq(["http://img.thesun.co.uk/multimedia/archive/01416/dim_1416768a.jpg", "http://img.thesun.co.uk/multimedia/archive/00703/sign_up_emails_682__703711a.gif", "http://img.thesun.co.uk/multimedia/archive/00703/sign_up_emails_682__703712a.gif"])
expect(@doc.best_candidate_has_image).to eq(false)
end
Expand Down Expand Up @@ -510,7 +510,7 @@
before do
@bbc = File.read(File.dirname(__FILE__) + "/fixtures/bbc.html")
@nytimes = File.read(File.dirname(__FILE__) + "/fixtures/nytimes.html")
@thesum = File.read(File.dirname(__FILE__) + "/fixtures/thesun.html")
@thesun = File.read(File.dirname(__FILE__) + "/fixtures/thesun.html")
end

it "should not have any side-effects when calling content() and then images()" do
Expand Down

0 comments on commit b1b87ff

Please sign in to comment.