     Rally.test.destroyComponentsOfQuery 'kanbancolumnsettingsfield'
 
   it 'creates rows for each allowed value', ->
-    @_createKanbanSettingsField(
+    @createKanbanSettingsField(
       renderTo: 'testDiv'
     )
-    @_refreshField()
+    @refreshField()
 
     @waitForCallback(@readyCallback).then =>
       firstCells = Ext.dom.Query.select('.x4-grid-cell-first > .x4-grid-cell-inner')

        data = @field.getSubmitData()
        expect(data.foo).toBe @value

  describe 'shouldShowColumnLevelFieldPicker on', ->
    it 'should display 5 columns with the cardFields field picker as the last column', ->
      @_createKanbanSettingsField(
        renderTo: 'testDiv',
        shouldShowColumnLevelFieldPicker: true
      )
      @_refreshField()

      @waitForCallback(@readyCallback).then =>
        expect(@field._grid.columns.length).toBe 5

        gridHelper = new Helpers.Grid(@field._grid)
        gridHelper.startEditingCell('', 'cardFields').then (inlineEditor) =>
          field = inlineEditor.editor.field
          fieldRightClsSelector = '.' + field.rightCls.replace(' ', '.')
          @click(css: fieldRightClsSelector).then =>
            @once(
              condition: => field.list.getEl().down(fieldRightClsSelector).getHTML() == field.rightUpdateText
              description: 'wait for right side action text to swap'
            ).then =>
              @click(css: fieldRightClsSelector).then =>
                rowOneCardFieldsNameArray = _.pluck(_.pluck(@field._grid.store.getAt(0).get('cardFields'), 'data'), 'name')
                expect(rowOneCardFieldsNameArray).not.toContain 'AcceptedDate'
                expect(@field._grid.store.getAt(1).get('cardFields')).not.toContain 'AcceptedDate'

  helpers
    createKanbanSettingsField: (config) ->
      @readyCallback = @stub()

      @field = Ext.create('Rally.apps.kanban.ColumnSettingsField', Ext.apply(
