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 #1 from rwjblue/it-works
Browse files Browse the repository at this point in the history
Show that it works.
  • Loading branch information
dfreeman authored Aug 1, 2016
2 parents 66f50cd + fecb155 commit 9d683e1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
4 changes: 4 additions & 0 deletions app/components/it-works.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.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{yield}}
3 changes: 3 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"ember": "alpha",
"ember-cli-shims": "0.1.1",
"ember-qunit-notifications": "0.1.0"
},
"resolutions": {
"ember": "alpha"
}
}
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';

moduleForComponent('fails', 'Integration | Component | fails', {
moduleForComponent('it-works', 'Integration | Component | it works', {
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`{{fails}}`);
this.render(hbs`{{it-works}}`);

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

});

test('it renders blocks', function(assert) {
// Template block usage:
this.render(hbs`
{{#fails}}
{{#it-works}}
template block text
{{/fails}}
{{/it-works}}
`);

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

0 comments on commit 9d683e1

Please sign in to comment.