describe('Core_init', function () {
  var id = 'testContainer';

  beforeEach(function () {
    this.$container = $('<div id="' + id + '"></div>').appendTo('body');
  });

  afterEach(function () {
    if (this.$container) {
      destroy();
      this.$container.remove();
    }
  });

  it('should inherit cell type', function () {

    handsontable({
      data : [[1,2]],
      columns : [
        { },
        { type : 'checkbox' }
      ],
      cells : function (row, col, prop) {
        if (row === 0 && col === 0) {
          return {
            type : 'number'
          }
        }
      }
    });

    expect(getCellMeta(0, 0).type).toEqual('number');
    expect(getCellMeta(0, 1).type).toEqual('checkbox');

  });

  it('should not reset columns types to text', function () {
    handsontable({
      data : [[1, true]],
      columns : [
        { type : 'number' },
        { type : 'checkbox' }
      ]
    });

    var td = this.$container.find('td');

    expect(td.eq(0).text()).toEqual('1');
    expect(td.eq(1).text()).toEqual('');

    updateSettings({});

    expect(td.eq(0).text()).toEqual('1');
    expect(td.eq(1).text()).toEqual('');

  });


});

@@ -12,12 +12,22 @@
 ore_
-init
+updateSettings
 ', f
@@ -571,19 +571,20 @@
 e : 'num
-b
 er
+ic
 '%0A      
@@ -663,19 +663,20 @@
 ual('num
-b
 er
+ic
 ');%0A    
@@ -884,11 +884,12 @@
 'num
-b
 er
+ic
 ' %7D,

fix test name and cell type (numeric!)