Sha256: 08633ab4dde25367b1d7a1d66ec30b942b3251913ad67a3546f94d3dbbe28c49

Contents?: true

Size: 409 Bytes

Versions: 3

Compression:

Stored size: 409 Bytes

Contents

describe "Choices Input Suite", ->

    it "renders to a view", ->
        roles = new Lanes.Data.Roles([
            {id: 'one', name:'One'}
            {id: 'two', name:'Two'}
        ])
        sf = new Lanes.Component.SelectField({
            multiple: true, data: roles, mappings:{ title: 'name', selected: 'member' }
        })
        sf.render().el
        expect( sf.$('option').length ).toEqual(2)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lanes-0.0.3 spec/client/component/ChoicesInputSpec.coffee
lanes-0.0.2 spec/client/component/ChoicesInputSpec.coffee
lanes-0.0.1 spec/client/component/ChoicesInputSpec.coffee