         plugins: [
           ptype: 'rallytimeboxscrollablecardboard'
           pluginId: 'scrollablePlugin'
-          getFirstScrollableColumn: ->
+          getFirstVisibleScrollableColumn: ->
             @cmp.getColumns()[0]
-          getLastScrollableColumn: ->
+          getLastVisibleScrollableColumn: ->
             Rally.util.Array.last @cmp.getColumns()
+          getScrollableColumns: ->
+            @cmp.getColumns()
         ]
         renderTo: 'testDiv'
         scrollableColumnRecords: @bucketedIterationRecords

  it 'should render newly visible column in right-most column when scrolling forwards', ->
    @createBoard().then =>
      @scrollForwards().then =>
        expect(@plugin.getLastScrollableColumn().getColumnHeaderCell().dom).toBe (Rally.util.Array.last @getColumnHeaderCells())
        expect(@plugin.getLastScrollableColumn().getContentCell().dom).toBe (Rally.util.Array.last @getColumnContentCells())

  it 'should render newly visible column in left-most column when scrolling backwards', ->
    @createBoard().then =>
      @scrollBackwards().then =>
        expect(@plugin.getFirstScrollableColumn().getColumnHeaderCell().dom).toBe @getColumnHeaderCells()[0]
        expect(@plugin.getFirstScrollableColumn().getContentCell().dom).toBe @getColumnContentCells()[0]

  it 'should re-render scroll buttons after scrolling forwards', ->
    @createBoard().then =>
      @scrollForwards().then =>
        @assertButtonIsInColumnHeader @plugin.forwardsButton, @plugin.getLastScrollableColumn()
        @assertButtonIsInColumnHeader @plugin.backwardsButton, @plugin.getFirstScrollableColumn()

  it 'should re-render scroll buttons after scrolling backwards', ->
    @createBoard().then =>
      @scrollBackwards().then =>
        @assertButtonIsInColumnHeader @plugin.forwardsButton, @plugin.getLastScrollableColumn()
        @assertButtonIsInColumnHeader @plugin.backwardsButton, @plugin.getFirstScrollableColumn()

  it 'should destroy old scroll buttons after scrolling forwards', ->
    @createBoard().then =>


  it 'should render forward button into header of last column', ->
    @createBoard().then =>
      @assertButtonIsInColumnHeader @plugin.forwardsButton, @plugin.getLastVisibleScrollableColumn()

  it 'should render backwards button into header of first column', ->
    @createBoard().then =>
      @assertButtonIsInColumnHeader @plugin.backwardsButton, @plugin.getFirstVisibleScrollableColumn()

  it 'should create visible forward button when there are forward columns', ->
    @createBoard(
