Test#currentPath()

currentPathObjectpublic Defined in packages/ember-testing/lib/helpers.js:167 Available since 1.5.0 Returns the current path. Example: function validateURL() { equal(currentPath(), 'some.path.index', "correct path was transitioned into."); } click('#some-link-id').then(validateURL); Returns: Object The currently active path.

Test#currentRouteName()

currentRouteNameObjectpublic Defined in packages/ember-testing/lib/helpers/current_route_name.js:6 Available since 1.5.0 Returns the currently active route name. Example: javascript function validateRouteName() { equal(currentRouteName(), 'some.path', "correct route was transitioned into."); } visit('/some/path').then(validateRouteName) Returns: Object The name of the currently active route.

Test#click()

click (selector, context) RSVP.Promisepublic Defined in packages/ember-testing/lib/helpers.js:44 Clicks an element and triggers any actions triggered by the element's click event. Example: click('.some-jQuery-selector').then(function() { // assert something }); Parameters: selector String jQuery selector for finding element on the DOM context Object A DOM Element, Document, or jQuery to use as context Returns: RSVP.Promise

Test#currentURL()

currentURLObjectpublic Defined in packages/ember-testing/lib/helpers.js:187 Available since 1.5.0 Returns the current URL. Example: function validateURL() { equal(currentURL(), '/some/path', "correct URL was transitioned into."); } click('#some-link-id').then(validateURL); Returns: Object The currently active URL.

Templates.helpers.with()

with (options) Stringpublic Defined in packages/ember-htmlbars/lib/helpers/with.js:8 Use the {{with}} helper when you want to alias a property to a new name. This is helpful for semantic clarity as it allows you to retain default scope or to reference a property from another {{with}} block. If the aliased property is "falsey", for example: false, undefined null, "", 0, NaN or an empty array, the block will not be rendered. {{! Will only render if user.posts contains items}} {{#with user.pos

Test

Ember.Test Class PUBLIC Defined in: packages/ember-testing/lib/test.js:29 Module: ember-testing This is a container for an assortment of testing related functionality: Choose your default test adapter (for your framework of choice). Register/Unregister additional test helpers. Setup callbacks to be fired when the test helpers are injected into your application.

Test#adapter

adapter{Class} The adapter to be used.public Defined in packages/ember-testing/lib/test.js:66 Used to allow ember-testing to communicate with a specific testing framework. You can manually set it before calling App.setupForTesting(). Example: Ember.Test.adapter = MyCustomAdapter.create() If you do not set it, ember-testing will default to Ember.Test.QUnitAdapter. Default: Ember.Test.QUnitAdapter

Templates.helpers.unless()

unlesspublic Defined in packages/ember-htmlbars/lib/helpers/if_unless.js:81 The unless helper is the inverse of the if helper. Its block will be rendered if the expression contains a falsey value. All forms of the if helper can also be used with unless.

Templates.helpers.textarea()

textarea (options) public Defined in packages/ember-htmlbars/lib/keywords/textarea.js:6 {{textarea}} inserts a new instance of <textarea> tag into the template. The attributes of {{textarea}} match those of the native HTML tags as closely as possible. The following HTML attributes can be set: value name rows cols placeholder disabled maxlength tabindex selectionEnd selectionStart selectionDirection wrap readonly autofocus form spellcheck required When set to a quoted string, these val

Templates.helpers.render()

render (name, context, options) Stringpublic Defined in packages/ember-htmlbars/lib/keywords/render.js:14 Calling {{render}} from within a template will insert another template that matches the provided name. The inserted template will access its properties on its own controller (rather than the controller of the parent template). If a view class with the same name exists, the view class also will be used. Note: A given controller may only be used once in your app in this manner. A singleto