test/test_eat.rb in eat-0.0.6 vs test/test_eat.rb in eat-0.0.7
- old
+ new
@@ -19,9 +19,13 @@
def test_filesystem_uri
assert eat("file://#{File.expand_path(__FILE__)}").include?('class TestEat < Test::Unit::TestCase')
end
+ def test_uri
+ assert eat(::URI.parse('http://brighterplanet.com/robots.txt')).include?('User-agent')
+ end
+
def test_http
assert eat('http://brighterplanet.com/robots.txt').include?('User-agent')
end
def test_https