has_meta 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/has_meta/version.rb +1 -1
- data/lib/has_meta.rb +1 -1
- data/test/test_has_meta.rb +5 -0
- metadata +1 -1
data/lib/has_meta/version.rb
CHANGED
data/lib/has_meta.rb
CHANGED
data/test/test_has_meta.rb
CHANGED
@@ -55,6 +55,11 @@ class HasMetaTest < Test::Unit::TestCase
|
|
55
55
|
assert_equal "one,two,three", @widget.meta_keywords
|
56
56
|
end
|
57
57
|
|
58
|
+
def test_treat_keywords_special_but_not_too_special
|
59
|
+
@widget.keywords = " , , one two, , three , , "
|
60
|
+
assert_equal "one two,three", @widget.meta_keywords
|
61
|
+
end
|
62
|
+
|
58
63
|
def test_do_not_treat_description_special
|
59
64
|
@widget.short_description = " , , one , , two , three , , "
|
60
65
|
assert_equal ", , one , , two , three , ,", @widget.meta_description
|