 SourceMap = require('source-map')
 postcss   = require('../lib/postcss')
 Result    = require('../lib/result')
-Root      = require('../lib/root')
+
+describe 'postcss.Root', ->
+
+  it 'allows to build own CSS', ->
+    root = new postcss.Root()
+    rule = new postcss.Rule(selector: 'a')
+    rule.append( new postcss.Declaration(prop: 'color', value: 'black') )
+    root.append( rule )
+
+    root.toString().should.eql 'a {color: black}'
 
 describe 'postcss()', ->
 


  describe 'process()', ->

    it 'returns Result object', ->
      result = postcss().process('a{}')
      result.should.be.an.instanceOf(Result)

    a = -> 1
    b = -> 2
    postcss(a, b).should.eql { processors: [a, b] }

  describe 'use()', ->

