sinew 1.0.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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