test/test_merging.rb in css_parser-1.2.4 vs test/test_merging.rb in css_parser-1.2.5
- old
+ new
@@ -96,9 +96,15 @@
def test_merging_multiple_important
rs1 = RuleSet.new(nil, 'color: black !important;', 1000)
rs2 = RuleSet.new(nil, 'color: red !important;', 1)
merged = CssParser.merge(rs1, rs2)
assert_equal 'black !important;', merged['color']
+
+ rs3 = RuleSet.new(nil, 'color: blue !important;', 1000)
+ merged = CssParser.merge(rs1, rs2, rs3)
+ assert_equal 'blue !important;', merged['color']
+
+
end
def test_merging_shorthand_important
rs1 = RuleSet.new(nil, 'background: black none !important;')
rs2 = RuleSet.new(nil, 'background-color: red;')