Skip to content

Commit b48454f

Browse files
committed
namespace examples
1 parent 5f573e6 commit b48454f

11 files changed

Lines changed: 24 additions & 21 deletions

File tree

File renamed without changes.

tests/dummy/app/pods/query-parameters/controller.js renamed to tests/dummy/app/pods/examples/query-parameters/controller.js

File renamed without changes.

tests/dummy/app/pods/query-parameters/template.hbs renamed to tests/dummy/app/pods/examples/query-parameters/template.hbs

File renamed without changes.

tests/dummy/app/pods/redirects/replace-with/route.js renamed to tests/dummy/app/pods/examples/redirects/replace-with/route.js

File renamed without changes.

tests/dummy/app/pods/redirects/transition-to/route.js renamed to tests/dummy/app/pods/examples/redirects/transition-to/route.js

File renamed without changes.

tests/dummy/app/pods/request-object/controller.js renamed to tests/dummy/app/pods/examples/request-object/controller.js

File renamed without changes.
File renamed without changes.

tests/dummy/app/router.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,19 @@ Router.map(function() {
1717
this.route('visit');
1818
});
1919

20-
this.route('redirects', function() {
21-
this.route('transition-to');
22-
this.route('replace-with');
23-
});
20+
this.route('examples', function() {
21+
this.route('redirects', function() {
22+
this.route('transition-to');
23+
this.route('replace-with');
24+
});
25+
26+
this.route('query-parameters');
2427

25-
this.route('query-parameters');
28+
this.route('request-object');
2629

27-
this.route('request-object');
30+
this.route('not-found', { path: '/*path' });
31+
});
2832

29-
this.route('not-found', { path: '/*path' });
3033
});
3134

3235
export default Router;

tests/fastboot/basic-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module('Fastboot | basic', function(hooks) {
3131
});
3232

3333
test('it preserves all query parameters', async function(assert) {
34-
await visit('/query-parameters?first=1&second=2&third=3');
34+
await visit('/examples/query-parameters?first=1&second=2&third=3');
3535

3636
assert.dom('h1').hasText('1 2 3');
3737
});

tests/fastboot/redirects-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ module('FastBoot | redirects test', function(hooks) {
55
setup(hooks);
66

77
test('redirects with a transition to', async function(assert) {
8-
let { headers, statusCode, url } = await visit('/redirects/transition-to');
8+
let { headers, statusCode, url } = await visit('/examples/redirects/transition-to');
99

1010
assert.equal(statusCode, 307);
1111
assert.equal(url, '/');
1212
assert.equal(headers.location, `//${window.location.host}/`);
1313
});
1414

1515
test('redirects with a replace with', async function(assert) {
16-
let { headers, statusCode, url } = await visit('/redirects/replace-with');
16+
let { headers, statusCode, url } = await visit('/examples/redirects/replace-with');
1717

1818
assert.equal(statusCode, 307);
1919
assert.equal(url, '/');

0 commit comments

Comments
 (0)