Sha256: 9e40fe1385d6345f2e26590a2dabc9813a08ae945681503ad662b49d1865cd68

Contents?: true

Size: 884 Bytes

Versions: 15

Compression:

Stored size: 884 Bytes

Contents

describe MotionKit::NSTableViewHelpers do

  before do
    @layout = TestTableColumnLayout.new.build
  end

  it 'should have a column called "foo"' do
    column = @layout.table.tableColumnWithIdentifier('foo')
    column.should.be.kind_of(NSTableColumn)
  end

  it 'column1 should say "Foo"' do
    @layout.column1.headerCell.stringValue.should == 'Foo'
  end

  it 'should have a column called "bar"' do
    column = @layout.table.tableColumnWithIdentifier('bar')
    column.should.be.kind_of(NSTableColumn)
  end

  it 'column2 should say "Bar"' do
    @layout.column2.headerCell.stringValue.should == 'Bar'
  end

  it 'should have a column called "quux"' do
    column = @layout.table.tableColumnWithIdentifier('quux')
    column.should.be.kind_of(NSTableColumn)
  end

  it 'column3 should say "Quux"' do
    @layout.column3.headerCell.stringValue.should == 'Quux'
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
motion-kit-1.1.1 spec/osx/table_view_spec.rb
motion-kit-1.1.0 spec/osx/table_view_spec.rb
motion-kit-1.0.3 spec/osx/table_view_spec.rb
motion-kit-1.0.2 spec/osx/table_view_spec.rb
motion-kit-1.0.1 spec/osx/table_view_spec.rb
motion-kit-1.0.0 spec/osx/table_view_spec.rb
motion-kit-0.18.0 spec/osx/table_view_spec.rb
motion-kit-0.17.0 spec/osx/table_view_spec.rb
motion-kit-0.16.0 spec/osx/table_view_spec.rb
motion-kit-0.15.0 spec/osx/table_view_spec.rb
motion-kit-0.14.2 spec/osx/table_view_spec.rb
motion-kit-0.14.1 spec/osx/table_view_spec.rb
motion-kit-0.14.0 spec/osx/table_view_spec.rb
motion-kit-0.13.0 spec/osx/table_view_spec.rb
motion-kit-0.12.0 spec/osx/table_view_spec.rb