spec/html/proofer_spec.rb in html-proofer-1.3.1 vs spec/html/proofer_spec.rb in html-proofer-1.3.2
- old
+ new
@@ -7,6 +7,13 @@
proofer = HTML::Proofer.new(brokenLinkInternalFilepath)
capture_stderr { proofer.run }
proofer.failed_tests.should eq(["\e[34mspec/html/proofer/fixtures/links/brokenLinkInternal.html\e[0m: internally linking to ./notreal.html, which does not exist", "\e[34mspec/html/proofer/fixtures/links/brokenLinkInternal.html\e[0m: internally linking to ./missingImageAlt.html, which does not exist"])
end
end
+ describe "#files" do
+ it "works for directory that ends with .html" do
+ folder = "#{FIXTURES_DIR}/links/_site/folder.html"
+ proofer = HTML::Proofer.new folder
+ proofer.files.should == ["#{folder}/index.html"]
+ end
+ end
end