nokogiri-styles 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -28,6 +28,13 @@ class TestNodeStyles < Test::Unit::TestCase
|
|
28
28
|
assert_equal(node.styles.class, NokogiriStyles::Propset)
|
29
29
|
end
|
30
30
|
|
31
|
+
def test_nil_style
|
32
|
+
node = MockNode.new
|
33
|
+
assert_nothing_raised do
|
34
|
+
assert_equal('', node.styles.to_s)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
31
38
|
def test_set_styles
|
32
39
|
node = MockNode.new
|
33
40
|
node.styles = MockStyles.new('width: 2px; height: 4px')
|