var chai = require('chai');
var helpers = require('../lib/helpers');

var expect = chai.expect;

describe('helpers', function() {
  it('should have specific functions', function() {
    expect(helpers).to.respondTo('titleize');
    expect(helpers).to.respondTo('capitalize');
    expect(helpers).to.respondTo('camelize');
    expect(helpers).to.respondTo('basename');
  });

  describe('#titleize', function() {
    it('should be titleized', function() {
      expect(helpers.titleize('poplar-glue')).to.equal('Poplar-Glue');
    });
  });

  describe('#capitalize', function() {
    it('should be capitalized', function() {
      expect(helpers.capitalize('poplar_glue')).to.equal('Poplar_glue');
    });
  });

  describe('#camelize', function() {
    it('should be camelized', function() {
      expect(helpers.camelize('poplar_glue')).to.equal('poplarGlue');
    });
  });

  describe('#basename', function() {
    it('should get path\'s basename', function() {
      expect(helpers.basename('./my-path/file.js')).to.equal('file');
    });
  });
});

@@ -479,22 +479,21 @@
 tleize('
-poplar
+baiji
 -glue'))
@@ -503,22 +503,21 @@
 .equal('
-Poplar
+baiji
 -Glue');
@@ -645,30 +645,29 @@
 capitalize('
-poplar
+baiji
 _glue')).to.
@@ -677,14 +677,13 @@
 al('
-Poplar
+baiji
 _glu
@@ -813,22 +813,21 @@
 melize('
-poplar
+baiji
 _glue'))
@@ -841,14 +841,13 @@
 al('
-poplar
+baiji
 Glue

update test