spec/convertions_spec.rb in beautiful-css-0.0.1 vs spec/convertions_spec.rb in beautiful-css-0.0.3

- old
+ new

@@ -18,22 +18,30 @@ - it 'two styles' do + it 'should work with three styles' do dirty = <<DIRTY a { color:red; background-color:blue; } + +.classy +{ + color:green; +} DIRTY clean = <<CLEAN a { background-color:blue } +.classy +{ color:green } + a { color:red } CLEAN assert_renders dirty, clean end @@ -71,9 +79,39 @@ { color:red } } DIRTY clean = <<CLEAN .classy a +{ color:red } +CLEAN + assert_renders dirty, clean + end + + + + + it 'should remove dups' do + dirty = <<DIRTY +a { color:red } +a { color:red } +DIRTY + clean = <<CLEAN +a +{ color:red } +CLEAN + assert_renders dirty, clean + end + + + + + it 'should removed unset values' do + dirty = <<DIRTY +a { color:green } +a { color:red } +DIRTY + clean = <<CLEAN +a { color:red } CLEAN assert_renders dirty, clean end