Add Utils::Internet.connected? to determine whether host machine has internet connection. (#5870)

Merge pull request 5870
This commit is contained in:
Parker Moore
2017-11-02 16:54:42 -04:00
committed by jekyllbot
parent 7e31e274fb
commit 8fc463bdce
3 changed files with 46 additions and 0 deletions

View File

@@ -403,4 +403,10 @@ class TestUtils < JekyllUnitTest
assert_equal "bom|another", merged[:encoding]
end
end
context "Utils::Internet.connected?" do
should "return true if there's internet" do
assert Utils::Internet.connected?
end
end
end