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.

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#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#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#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

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.

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

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.unbound()

unboundpublic Defined in packages/ember-htmlbars/lib/keywords/unbound.js:10 The {{unbound}} helper disconnects the one-way binding of a property, essentially freezing its value at the moment of rendering. For example, in this example the display of the variable name will not change even if it is set with a new value: {{unbound name}} Like any helper, the unbound helper can accept a nested helper expression. This allows for custom helpers to be rendered unbound: {{unbound (some-custom-helpe

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