Strain-details: controller -> component

This commit is contained in:
Matthew Dillon 2015-06-01 09:39:56 -08:00
parent 20765e5dac
commit c5b28f7204
6 changed files with 158 additions and 152 deletions

View file

@ -0,0 +1,21 @@
import {
moduleForComponent,
test
} from 'ember-qunit';
moduleForComponent('strains/strain-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

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