Sha256: cf8b270a42a8a353ac2d160948a7e0a0e5bb4a3100fc6b872acf7e2f27916f1a
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
describe "Lanes.Models.Collection", -> it "it triggers promise on loading", (done)-> Model = Lanes.Test.DummyModel syncSucceedWith([ { id: 1, title: 'first value' } { id: 2, title: 'second value' } ]) collection = Model.where( name: 'foo' ) collection.whenLoaded -> expect( collection.isLoaded() ).toBeTrue() done()
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lanes-0.1.2 | spec/lanes/models/CollectionSpec.coffee |