Sha256: 9e7f0db5473eaf82a99826e3e2381ffa61430758e2f1ad4e0b22423e31c09819
Contents?: true
Size: 757 Bytes
Versions: 1
Compression:
Stored size: 757 Bytes
Contents
describe "Skr.Models.Customer", -> beforeEach -> Lanes.Test.ModelSaver.setUser('admin') xit "sends failure messages when code isn't set", (done) -> model = new Skr.Models.Customer() Lanes.Test.ModelSaver.perform(model, done).then (save) -> expect(model.errors?.code).toContain("blank") it "saves when fields are set", (done) -> model = new Skr.Models.Customer( code: "SPECTEST", name: "A Spec Test Customer" terms: {code: 'SPECTESTER'} billing_address: { name: "Billing Address" } shipping_address: { name: "Shipping Address" } ) Lanes.Test.ModelSaver.perform(model, done).then (save) -> expect(model.errors).toBeNull()
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stockor-0.1.9 | spec/skr/models/CustomerSpec.coffee |