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

Version Path
sproutit-sproutcore-1.0.0.20090720093355 frameworks/sproutcore/frameworks/datastore/tests/models/record/core_methods.js
sproutit-sproutcore-1.0.0.20090720202429 frameworks/sproutcore/frameworks/datastore/tests/models/record/core_methods.js
sproutit-sproutcore-1.0.0.20090721125122 frameworks/sproutcore/frameworks/datastore/tests/models/record/core_methods.js
sproutit-sproutcore-1.0.126 frameworks/sproutcore/frameworks/datastore/tests/models/record/core_methods.js
sproutit-sproutcore-1.0.20090721145251 frameworks/sproutcore/frameworks/datastore/tests/models/record/core_methods.js
sproutit-sproutcore-1.0.20090721145280 frameworks/sproutcore/frameworks/datastore/tests/models/record/core_methods.js
sproutit-sproutcore-1.0.20090721145281 frameworks/sproutcore/frameworks/datastore/tests/models/record/core_methods.js
sproutit-sproutcore-1.0.203 frameworks/sproutcore/frameworks/datastore/tests/models/record/core_methods.js