Showing the changes to test (1 of 2 files). Show all
Unified · Split
| @@ -22,6 +22,9 @@ class DocsParserTest < MiniTest::Spec · 21 unmodified lines | |||
| 22 | it "returns the <body>" do | 22 | it "returns the <body>" do |
| 23 | body = '<!doctype html><meta charset=utf-8><title></title><div>Test</div>' | 23 | body = '<!doctype html><meta charset=utf-8><title></title><div>Test</div>' |
| 24 | assert_equal '<div>Test</div>', parser(body).html.inner_html | 24 | assert_equal '<div>Test</div>', parser(body).html.inner_html |
| 25 | |||
| 26 | body = '<html><meta charset=utf-8><title></title><div>Test</div></html>' | ||
| 27 | assert_equal '<div>Test</div>', parser(body).html.inner_html | ||
| 25 | end | 28 | end |
| 26 | end | 29 | end |
| 27 | end | 30 | end |