sinew 1.0.4 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +0,0 @@
1
- require "helper"
2
-
3
- module Sinew
4
- class TestTextUtil < TestCase
5
- def test_tidy
6
- tidy = TextUtil.html_tidy(HTML)
7
- # tags removed?
8
- assert(tidy !~ /script|meta/)
9
- # squished?
10
- assert(tidy !~ / /)
11
- # comments removed?
12
- assert(tidy !~ /<!--/)
13
- end
14
-
15
- def test_clean
16
- clean = TextUtil.html_clean(HTML)
17
- # attributes removed
18
- assert(clean !~ /will_be_removed/)
19
- # attributes preserved
20
- assert(clean =~ /will_be_preserved/)
21
- end
22
- end
23
- end