Sha256: 4f974eaf7dab6b5b01bbd986f124835360553cbd329f7d1a912d9aaa11a90686
Contents?: true
Size: 868 Bytes
Versions: 8
Compression:
Stored size: 868 Bytes
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2009 Apple, Inc. and contributors. // License: Licened under MIT license (see license.js) // ========================================================================== /*globals module ok equals same test MyApp */ var MyApp; module("SC.Record core methods", { setup: function() { MyApp = SC.Object.create({ store: SC.Store.create() }) ; MyApp.Foo = SC.Record.extend({}); MyApp.json = { foo: "bar", number: 123, bool: YES, array: [1,2,3] }; MyApp.foo = MyApp.store.createRecord(MyApp.Foo, MyApp.json); } }); test("statusString", function() { equals(MyApp.foo.statusString(), 'READY_NEW', 'status string should be READY_NEW'); });
Version data entries
8 entries across 8 versions & 1 rubygems