Testing Routes

Testing Routes Unit testing methods and computed properties follows previous patterns shown in Unit Testing Basics because Ember.Route extends Ember.Object. Testing routes can be done both via acceptance or unit tests. Acceptance tests will likely provide better coverage for routes because routes are typically used to perform transitions and load data, both of which are tested more easily in full context rather than isolation. That being said, sometimes it is important to unit test your route

TextField#type

typeStringpublic Defined in packages/ember-htmlbars/lib/components/text_field.js:100 The type attribute of the input element. Default: "text"

Ember.controllerFor()

controllerForprivate Defined in packages/ember-routing/lib/system/controller_for.js:6 Finds a controller instance.

RSVP

RSVP Class Module: ember

ContainerDebugAdapter#resolver

resolverpublic Defined in packages/ember-extension-support/lib/container_debug_adapter.js:52 The resolver instance of the application being debugged. This property will be injected on creation. Default: null

DS.RESTAdapter#sortQueryParams()

sortQueryParams (obj) Object Defined in addon/adapters/rest.js:244 By default, the RESTAdapter will send the query params sorted alphabetically to the server. For example: store.query('posts', { sort: 'price', category: 'pets' }); will generate a requests like this /posts?category=pets&sort=price, even if the parameters were specified in a different order. That way the generated URL will be deterministic and that simplifies caching mechanisms in the backend. Setting sortQueryParams t

DS.Store#_dematerializeRecord()

_dematerializeRecord (internalModel) private Defined in addon/-private/system/store.js:2342 When a record is destroyed, this un-indexes it and removes it from any record arrays so it can be GCed. Parameters: internalModel InternalModel

Application#ready event

readypublic Defined in packages/ember-application/lib/system/application.js:751 Called when the Application has become ready, immediately before routing begins. The call will be delayed until the DOM has become ready.

DS.Store#init()

initprivate Defined in addon/-private/system/store.js:215

EachProxy

Ember.EachProxy Class PRIVATE Defined in: packages/ember-runtime/lib/system/each_proxy.js:16 Module: ember This is the object instance returned when you get the @each property on an array. It uses the unknownProperty handler to automatically create EachArray instances for property names.