Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check against SSL links #28

Merged
merged 2 commits into from
Jan 8, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions spec/html/proofer/fixtures/checkSSLLinks.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="https://developers.google.com/university">Some link</a>
6 changes: 6 additions & 0 deletions spec/html/proofer/links_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@
output.should == ""
end

it 'properly checks ssl links' do
checkSSLLinks = "#{FIXTURES_DIR}/checkSSLLinks.html"
output = capture_stderr { HTML::Proofer.new(checkSSLLinks).run }
output.should == ""
end

it 'ignores links marked as ignore data-proofer-ignore' do
ignorableLinks = "#{FIXTURES_DIR}/ignorableLinks.html"
output = capture_stderr { HTML::Proofer.new(ignorableLinks).run }
Expand Down