Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't add basic route to the router map #1390

Merged
merged 1 commit into from
Jul 16, 2014

Conversation

kimroen
Copy link
Contributor

@kimroen kimroen commented Jul 16, 2014

The route name basic is reserved and will be used for all generated routes, and should never be used in the Router map. This makes sure it isn't added when running ember generate route basic.

@@ -258,6 +258,14 @@ describe('Acceptance: ember generate', function() {
});
});

it('route basic isn\'t added to router', function() {
return generate(['route', 'basic']).then(function() {
assertFile('app/router.js', {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add an assertion to confirm that app/routes/basic.js was created too? I know it is, I'd just like this test to be clear that we are creating the file, but not injecting into router.js...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - done :)

rwjblue added a commit that referenced this pull request Jul 16, 2014
Don't add basic route to the router map
@rwjblue rwjblue merged commit 6c16e2a into ember-cli:master Jul 16, 2014
@kimroen kimroen deleted the limit-basic-route branch July 16, 2014 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants