test/lib/docparser/document_test.rb in docparser-0.1.6 vs test/lib/docparser/document_test.rb in docparser-0.2.0
- old
+ new
@@ -25,15 +25,9 @@
doc.html.must_equal(open(file).read)
doc.xpath_content('xmltest > title').must_equal('Test XML')
doc.xpath_content('xmltest > test').must_equal('Character Data')
end
- it 'should read remote contents' do
- url = 'https://gist.github.com/jurriaan/3f2750aa546e3e6719cf/raw'
- doc = DocParser::Document.new(filename: url, parser: @parser)
- doc.html.must_equal(open(url).read)
- end
-
it 'should use the correct encoding' do
file = File.join($SUPPORT_DIR, 'test_encoding.html')
file2 = File.join($SUPPORT_DIR, 'test_encoding2.html')
doc = DocParser::Document.new(filename: file, parser: @parser)
doc2 = DocParser::Document.new(filename: file2,