Sha256: b31b984f048a60180442df2f0da0a6efdc9a030f5b85c9dfb65d492cc79c63a4

Contents?: true

Size: 609 Bytes

Versions: 9

Compression:

Stored size: 609 Bytes

Contents

describe "Hippo.Models.Query", ->

    beforeEach ->
        @query =
            new Hippo.Models.Query({
                syncOptions: @syncOptions
                src: Hippo.Models.User, fields: [
                    {id:'id',   visible: false}
                    {id:'email', fixedWidth: 130 },
                    {id:'login', },
                    {id:'name', flex: 1}
                ]
            })


    it "can be cloned unsaved attributes", ->
        newQuery = @query.clone()
        expect(newQuery).toBeDefined()
        expect(newQuery.fields.pluck('id')).toEqual(@query.fields.pluck('id'))

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hippo-fw-0.9.9 spec/hippo/models/QuerySpec.coffee
hippo-fw-0.9.8 spec/hippo/models/QuerySpec.coffee
hippo-fw-0.9.7 spec/hippo/models/QuerySpec.coffee
hippo-fw-0.9.6 spec/hippo/models/QuerySpec.coffee
hippo-fw-0.9.5 spec/hippo/models/QuerySpec.coffee
hippo-fw-0.9.4 spec/hippo/models/QuerySpec.coffee
hippo-fw-0.9.3 spec/hippo/models/QuerySpec.coffee
hippo-fw-0.9.2 spec/hippo/models/QuerySpec.coffee
hippo-fw-0.9.1 spec/hippo/models/QuerySpec.coffee