Sha256: dc7cff581bccab512c52371f740325ccf283182702360baa49b3b6ad2b137a59

Contents?: true

Size: 486 Bytes

Versions: 9

Compression:

Stored size: 486 Bytes

Contents

describe 'The Table View', ->
  beforeEach ->
    @tableView = new Luca.components.TableView  
      collection: new Luca.Collection
      columns:[
        "column_one"
        "column_two"
      ]

    $('body').append( @tableView.render() )

  it 'should accept strings for column config', ->
    expect( @tableView.columns[0].reader ).toEqual("column_one")

  it 'should automatically determine a missing header config', ->
    expect( @tableView.columns[0].header ).toBeDefined()

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
luca-0.9.91 spec/javascripts/components/table_view_spec.coffee
luca-0.9.9 spec/javascripts/components/table_view_spec.coffee
luca-0.9.899 spec/javascripts/components/table_view_spec.coffee
luca-0.9.89 spec/javascripts/components/table_view_spec.coffee
luca-0.9.8 spec/components/table_view_spec.coffee
luca-0.9.76 spec/components/table_view_spec.coffee
luca-0.9.7 spec/components/table_view_spec.coffee
luca-0.9.65 spec/components/table_view_spec.coffee
luca-0.9.6 spec/components/table_view_spec.coffee