Skip to content
This repository has been archived by the owner on Jul 18, 2019. It is now read-only.

Commit

Permalink
Merge pull request #2 from rwjblue/it-works-2
Browse files Browse the repository at this point in the history
It works with `ember g it-works-2`.
  • Loading branch information
dfreeman authored Aug 2, 2016
2 parents 9d683e1 + 47d3ada commit 7970103
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/components/it-works-2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Ember from 'ember';

export default Ember.Component.extend({
});
1 change: 1 addition & 0 deletions app/templates/components/it-works-2.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{yield}}
24 changes: 24 additions & 0 deletions tests/integration/components/it-works-2-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';

moduleForComponent('it-works-2', 'Integration | Component | it works 2', {
integration: true
});

test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.on('myAction', function(val) { ... });

this.render(hbs`{{it-works-2}}`);

assert.equal(this.$().text().trim(), '');

// Template block usage:
this.render(hbs`
{{#it-works-2}}
template block text
{{/it-works-2}}
`);

assert.equal(this.$().text().trim(), 'template block text');
});

0 comments on commit 7970103

Please sign in to comment.