Skip to content

Commit

Permalink
Example of link-to's still failing in ember 1.12.
Browse files Browse the repository at this point in the history
Supposedly fixed with emberjs/ember-test-helpers#100 , but still seeing the same problem.
  • Loading branch information
blimmer committed Sep 17, 2015
1 parent aec0404 commit 4e30f87
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/components/foo-bar.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/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var Router = Ember.Router.extend({
});

Router.map(function() {
this.route('about');
});

export default Router;
4 changes: 4 additions & 0 deletions app/routes/about.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Ember from 'ember';

export default Ember.Route.extend({
});
1 change: 1 addition & 0 deletions app/templates/about.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{outlet}}
3 changes: 3 additions & 0 deletions app/templates/components/foo-bar.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{#link-to 'about'}}

{{/link-to}}
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "ember-cli-example-app-for-github",
"dependencies": {
"ember": "1.13.7",
"ember": "1.12.1",
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "ember-cli-test-loader#0.1.3",
"ember-data": "1.13.8",
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.5",
"ember-qunit": "0.4.9",
"ember-qunit": "0.4.11",
"ember-qunit-notifications": "0.0.7",
"ember-resolver": "~0.1.18",
"jquery": "^1.11.3",
Expand Down
26 changes: 26 additions & 0 deletions tests/integration/components/foo-bar-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';

moduleForComponent('foo-bar', 'Integration | Component | foo bar', {
integration: true
});

test('it renders', function(assert) {
assert.expect(2);

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

this.render(hbs`{{foo-bar}}`);

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

// Template block usage:
this.render(hbs`
{{#foo-bar}}
template block text
{{/foo-bar}}
`);

assert.equal(this.$().text().trim(), 'template block text');
});
11 changes: 11 additions & 0 deletions tests/unit/routes/about-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { moduleFor, test } from 'ember-qunit';

moduleFor('route:about', 'Unit | Route | about', {
// 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);
});

0 comments on commit 4e30f87

Please sign in to comment.