test/extra/validators/test_links.rb in nanoc-3.3.2 vs test/extra/validators/test_links.rb in nanoc-3.3.3
- old
+ new
@@ -51,12 +51,11 @@
def test_fetch_http_status_for
# Create validator
validator = Nanoc::Extra::Validators::Links.new('output', [ 'index.html' ])
# Test
- assert validator.send(:fetch_http_status_for, URI.parse('http://heise.de/'), 200)
- assert validator.send(:fetch_http_status_for, URI.parse('https://www.google.com/'), 200)
- assert validator.send(:fetch_http_status_for, URI.parse('https://google.com/'), 200)
- assert validator.send(:fetch_http_status_for, URI.parse('http://google.com/foo/bar'), 404)
+ assert_equal 200, validator.send(:fetch_http_status_for, URI.parse('http://www.apple.com/'))
+ assert_equal 200, validator.send(:fetch_http_status_for, URI.parse('https://www.apple.com/'))
+ assert_equal 404, validator.send(:fetch_http_status_for, URI.parse('http://www.apple.com/sdfghgfdsdfgh'))
end
end