Rough in species

This commit is contained in:
Matthew Dillon 2015-06-02 14:27:23 -08:00
parent dfc62cd1ac
commit afcf24a8d8
22 changed files with 399 additions and 2 deletions

View file

@ -0,0 +1,21 @@
import {
moduleForComponent,
test
} from 'ember-qunit';
moduleForComponent('species/species-details', {
// Specify the other units that are required for this test
// needs: ['component:foo', 'helper:bar']
});
test('it renders', function(assert) {
assert.expect(2);
// Creates the component instance
var component = this.subject();
assert.equal(component._state, 'preRender');
// Renders the component to the page
this.render();
assert.equal(component._state, 'inDOM');
});

View file

@ -0,0 +1,15 @@
import {
moduleForModel,
test
} from 'ember-qunit';
moduleForModel('species', {
// Specify the other units that are required for this test.
needs: ['model:strain']
});
test('it exists', function(assert) {
var model = this.subject();
// var store = this.store();
assert.ok(!!model);
});

View file

@ -0,0 +1,14 @@
import {
moduleFor,
test
} from 'ember-qunit';
moduleFor('route:species', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function(assert) {
var route = this.subject();
assert.ok(route);
});

View file

@ -0,0 +1,14 @@
import {
moduleFor,
test
} from 'ember-qunit';
moduleFor('route:species/index', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function(assert) {
var route = this.subject();
assert.ok(route);
});

View file

@ -0,0 +1,14 @@
import {
moduleFor,
test
} from 'ember-qunit';
moduleFor('route:species/new', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function(assert) {
var route = this.subject();
assert.ok(route);
});

View file

@ -0,0 +1,14 @@
import {
moduleFor,
test
} from 'ember-qunit';
moduleFor('route:species/show', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function(assert) {
var route = this.subject();
assert.ok(route);
});