var gulp = require('gulp'),
  chai = require('chai'),
  expect = chai.expect,
  fs = require('fs'),
  multiline = require('multiline'),
  kssSplitter = require('../lib/modules/kss-splitter');

describe('KSS divider', function() {

  it('should parse single KSS block', function() {
    var str = multiline(function() {
      /*
// Comment
// Styleguide 1.0

.a { b: c }
      */
    }),
    result = [
      [
        'block',
        [
          'kss',
          '// Comment\n// Styleguide 1.0\n'
        ],
        [
          'code',
          '.a { b: c }'
        ]
      ]
    ],
    kssBlocks = kssSplitter.getAst(str);
    expect(kssBlocks).eql(result);
  });

});

@@ -662,12 +662,473 @@
 %0A  %7D);%0A%0A
+  it('should be agnostic to spaces in reference declaration', function()%7B%0A    var str = multiline(function() %7B%0A      /*%0A// Comment%0A//Styleguide 1.0 %0A%0A.a %7B b: c %7D%0A      */%0A    %7D),%0A    result = %5B%0A      %5B%0A        'block',%0A        %5B%0A          'kss',%0A          '// Comment%5Cn//Styleguide 1.0 %5Cn'%0A        %5D,%0A        %5B%0A          'code',%0A          '.a %7B b: c %7D'%0A        %5D%0A      %5D%0A    %5D,%0A    kssBlocks = kssSplitter.getAst(str);%0A    expect(kssBlocks).eql(result);%0A  %7D);%0A%0A
 %7D);%0A

Test to be space agnostic