Sha256: 8d14e63946432aba052381476fa35beca09b912317cbb93fdee3e204ff9773f9

Contents?: true

Size: 389 Bytes

Versions: 4

Compression:

Stored size: 389 Bytes

Contents

describe "Skr.Models.SoLine", ->

    it "can sets properties from the uom", ->
        model = new Skr.Models.SoLine()
        spy = jasmine.createSpy('onuom')
        model.on("change:uom", spy)
        model.set(uom: new Skr.Models.Uom(size: 10, code: 'CS'))
        expect(spy).toHaveBeenCalled()
        expect(model.uom_size).toEqual(10)
        expect(model.uom_code).toEqual('CS')

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stockor-0.5.0 spec/skr/models/SoLineSpec.coffee
stockor-0.4.0 spec/skr/models/SoLineSpec.coffee
stockor-0.3.0 spec/skr/models/SoLineSpec.coffee
stockor-0.2 spec/skr/models/SoLineSpec.coffee