text: 'use strict';
  
  require('should');
  var _s = require('underscore.string');
  var DJ = require('../index.js');
  
  describe('DJ test:', function() {
  
    it('Redefinition should _not_ fail if override is true', function() {
  
      var dj = new DJ('.', true);
  
      var obj = {
        'some': 'value',
        'already': 'set'
      };
  
      dj.str('already.new', 'value', obj);
  
      obj.should.eql({
        'some': 'value',
        'already': {'new': 'value'}
      });
  
    });
  
    it('Redefinition should _not_ fail if override is true', function() {
  
      var dj = new DJ('.', true);
  
      var obj = {
        'some': 'value',
        'already': 'set'
      };
  
      dj.str('already.new', 'value', obj);
      dj.str('some', 'new_value', obj);
  
      obj.should.eql({
        'some': 'new_value',
        'already': {'new': 'value'}
      });
  
    });
  
    it('should process non dot notation value with modifier if override is true',
      function() {
  
        var dj = new DJ('.', true);
  
        var row = {
          'title': 'my page',
          'slug': 'My Page'
        };
  
        var mods = {
          'title': _s.titleize,
          'slug': _s.slugify
        };
  
        dj.object(row, mods);
  
        row.should.eql({
          'title': 'My Page',
          'slug': 'my-page'
        });
  
      }
    );
  
  });
  