diff --git a/app/router.js b/app/router.js index de132d3..be35f91 100644 --- a/app/router.js +++ b/app/router.js @@ -9,6 +9,7 @@ const Router = EmberRouter.extend({ Router.map(function() { this.route('posts', function() { this.route('new'); + this.route('show'); }); }); diff --git a/app/routes/posts/show.js b/app/routes/posts/show.js new file mode 100644 index 0000000..6c74252 --- /dev/null +++ b/app/routes/posts/show.js @@ -0,0 +1,4 @@ +import Route from '@ember/routing/route'; + +export default Route.extend({ +}); diff --git a/app/templates/posts/show.hbs b/app/templates/posts/show.hbs new file mode 100644 index 0000000..c24cd68 --- /dev/null +++ b/app/templates/posts/show.hbs @@ -0,0 +1 @@ +{{outlet}} diff --git a/tests/unit/routes/posts/show-test.js b/tests/unit/routes/posts/show-test.js new file mode 100644 index 0000000..d9b6e24 --- /dev/null +++ b/tests/unit/routes/posts/show-test.js @@ -0,0 +1,11 @@ +import { moduleFor, test } from 'ember-qunit'; + +moduleFor('route:posts/show', 'Unit | Route | posts/show', { + // Specify the other units that are required for this test. + // needs: ['controller:foo'] +}); + +test('it exists', function(assert) { + let route = this.subject(); + assert.ok(route); +});