has_meta 0.0.5 → 0.0.6
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.
- 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
|